File tree 1 file changed +2
-0
lines changed
integration/hive/src/main/scala/org/apache/carbondata/hive
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class CarbonHiveMetastoreListener(conf: Configuration) extends MetaStorePreEvent
34
34
val table = preEventContext.asInstanceOf [PreCreateTableEvent ].getTable
35
35
val tableProps = table.getParameters
36
36
if (tableProps != null
37
+ && tableProps.containsKey(" spark.sql.sources.provider" )
37
38
&& (tableProps.get(" spark.sql.sources.provider" ) == " org.apache.spark.sql.CarbonSource"
38
39
|| tableProps.get(" spark.sql.sources.provider" ).equalsIgnoreCase(" carbondata" ))) {
39
40
val numSchemaParts = tableProps.get(" spark.sql.sources.schema.numParts" )
@@ -65,6 +66,7 @@ class CarbonHiveMetastoreListener(conf: Configuration) extends MetaStorePreEvent
65
66
val table = preEventContext.asInstanceOf [PreAlterTableEvent ].getNewTable
66
67
val tableProps = table.getParameters
67
68
if (tableProps != null
69
+ && tableProps.containsKey(" spark.sql.sources.provider" )
68
70
&& (tableProps.get(" spark.sql.sources.provider" ) == " org.apache.spark.sql.CarbonSource"
69
71
|| tableProps.get(" spark.sql.sources.provider" ).equalsIgnoreCase(" carbondata" ))) {
70
72
val numSchemaParts = tableProps.get(" spark.sql.sources.schema.numParts" )
You can’t perform that action at this time.
0 commit comments