kunal642 commented on a change in pull request #3386: [WIP] : Pre-priming cache
URL:
https://github.com/apache/carbondata/pull/3386#discussion_r326120006
##########
File path: integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
##########
@@ -591,6 +592,45 @@ object CarbonDataRDDFactory {
s"${ carbonLoadModel.getDatabaseName }.${ carbonLoadModel.getTableName }")
}
+ // code to handle Pre-Priming cache for loading
+ val prop = CarbonProperties.getInstance
+ .getProperty(CarbonCommonConstants.CARBON_ENABLE_INDEX_SERVER)
+ if (prop != null) {
+ if (prop.toBoolean) {
+ val readCommittedScope = new TableStatusReadCommittedScope(AbsoluteTableIdentifier.from(
+ carbonLoadModel.getTablePath), hadoopConf)
Review comment:
We can reuse the LoadMetadataDetails from the status object and pass to TableStatusReadCommittedScope. This will avoid reading of tableStatus file.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services