Indhumathi27 commented on a change in pull request #4216:
URL: https://github.com/apache/carbondata/pull/4216#discussion_r708160667
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/RefreshCarbonTableCommand.scala
##########
@@ -83,6 +84,23 @@ case class RefreshCarbonTableCommand(
if (FileFactory.isFileExist(schemaFilePath)) {
// read TableInfo
val tableInfo = SchemaReader.getTableInfo(identifier)
+ val tableProperties = tableInfo.getFactTable.getTableProperties
+ val indexName =
tableProperties.get(CarbonCommonConstants.SPATIAL_INDEX)
+ if (indexName != null) {
+ val SPATIAL_INDEX_CLASS = s"${ CarbonCommonConstants.SPATIAL_INDEX
}.$indexName.class"
Review comment:
can create new variable for CarbonCommonConstants.SPATIAL_INDEX and
format the code
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]