Github user Jay357089 commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/309#discussion_r92985059
--- Diff: integration/spark/src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala ---
@@ -412,24 +413,34 @@ class CarbonSqlParser()
case Token("TOK_LIKETABLE", child :: Nil) =>
likeTableName = child.getChild(0).getText()
+ case Token("TOK_QUERY", _) =>
+ isCreateAsSelect = true
+
case _ => // Unsupport features
}
-
- // validate tblProperties
- if (!CommonUtil.validateTblProperties(tableProperties, fields)) {
- throw new MalformedCarbonCommandException("Invalid table properties")
+ if (isCreateAsSelect) {
+ CreateCarbonTableAsSelect(
--- End diff --
fixed, pls check. CREATE TABLE t4 STORED BY 'carbondata' TBLPROPERTIES(''='') AS SELECT * FROM t3;
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at
[hidden email] or file a JIRA ticket
with INFRA.
---