Github user maropu commented on the issue:

    https://github.com/apache/spark/pull/18756
  
    I think this ticket just targets to support a new syntax in `INSERT` like;
    ```
    scala> sql("create table b2(a int, b double, c string)")
    scala> sql("insert into b2 values (1, 3.8, 'a')")
    scala> sql("insert into b2(a, c) values (2, 'b')") <-- not supported in the 
master
    org.apache.spark.sql.catalyst.parser.ParseException:
    mismatched input 'a' expecting {'(', 'SELECT', 'FROM', 'VALUES', 'TABLE', 
'INSERT', 'MAP', 'REDUCE'}(line 1, pos 15)
    
    == SQL ==
    insert into b2(a, c) values (2, 'b')
    ---------------^^^
    
      at 
org.apache.spark.sql.catalyst.parser.ParseException.withCommand(ParseDriver.scala:217)
      at 
org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parse(ParseDriver.scala:114)
      at 
org.apache.spark.sql.execution.SparkSqlParser.parse(SparkSqlParser.scala:48)
      at 
org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parsePlan(ParseDriver.scala:68)
      at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:623)
      ... 48 elided
    ```


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to