diff --git a/integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonCreateTableCommand.scala b/integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonCreateTableCommand.scala index 12eb420f9fb..1e17ffe00ea 100644 --- a/integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonCreateTableCommand.scala +++ b/integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonCreateTableCommand.scala @@ -78,8 +78,7 @@ case class CarbonCreateTableCommand( path } val streaming = tableInfo.getFactTable.getTableProperties.get("streaming") - if (path.startsWith("s3") && streaming != null && streaming != null && - streaming.equalsIgnoreCase("true")) { + if (streaming != null && streaming.equalsIgnoreCase("true") && path.startsWith("s3")) { throw new UnsupportedOperationException("streaming is not supported with s3 store") } tableInfo.setTablePath(tablePath)