Github user ravipesala commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1469#discussion_r153062859 --- Diff: integration/spark2/src/main/spark2.1/CarbonSessionState.scala --- @@ -107,15 +110,14 @@ class CarbonSessionCatalog( carbonEnv.carbonMetastore. checkSchemasModifiedTimeAndReloadTables(storePath) - val tableMeta = carbonEnv.carbonMetastore - .getTableFromMetadataCache(carbonDatasourceHadoopRelation.carbonTable.getDatabaseName, - carbonDatasourceHadoopRelation.carbonTable.getFactTableName) - if (tableMeta.isEmpty || (tableMeta.isDefined && - tableMeta.get.carbonTable.getTableLastUpdatedTime != - carbonDatasourceHadoopRelation.carbonTable.getTableLastUpdatedTime)) { + val table = carbonEnv.carbonMetastore.getTableFromMetadataCache( + carbonDatasourceHadoopRelation.carbonTable.getDatabaseName, + carbonDatasourceHadoopRelation.carbonTable.getFactTableName) + if (table.isEmpty || (table.isDefined && + table.get.carbonTable.getTableLastUpdatedTime != --- End diff -- wrong indentation
---