You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/03/17 14:16:42 UTC

[GitHub] [carbondata] QiangCai commented on a change in pull request #3134: [CARBONDATA-3302] [Spark-Integration] code cleaning related to CarbonCreateTable command

QiangCai commented on a change in pull request #3134: [CARBONDATA-3302] [Spark-Integration] code cleaning related to CarbonCreateTable command
URL: https://github.com/apache/carbondata/pull/3134#discussion_r266241560
 
 

 ##########
 File path: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonCreateTableCommand.scala
 ##########
 @@ -78,8 +78,8 @@ 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")) {
 
 Review comment:
   better to keep  "if" condition in one line

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services