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/02/25 00:46:38 UTC
[GitHub] qiuchenjian commented on a change in pull request #3134:
[CARBONDATA-3302] [Spark-Integration] code cleaning related to
CarbonCreateTable command
qiuchenjian 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_r259651771
##########
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:
"true”.equalsIgnoreCase(streaming) will judge the code “streaming != null” automatically
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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