You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Huaxin Gao (Jira)" <ji...@apache.org> on 2022/01/10 07:10:00 UTC

[jira] [Updated] (SPARK-37802) composite field name like `field name` doesn't work with Aggregate push down

     [ https://issues.apache.org/jira/browse/SPARK-37802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Huaxin Gao updated SPARK-37802:
-------------------------------
    Fix Version/s: 3.2.0

> composite field name like `field name` doesn't work with Aggregate push down
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-37802
>                 URL: https://issues.apache.org/jira/browse/SPARK-37802
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.0, 3.3.0
>            Reporter: Huaxin Gao
>            Assignee: Huaxin Gao
>            Priority: Minor
>             Fix For: 3.2.0, 3.3.0
>
>
> {code:java}
> sql("SELECT SUM(`field name`) FROM h2.test.table")
> org.apache.spark.sql.catalyst.parser.ParseException: 
> extraneous input 'name' expecting <EOF>(line 1, pos 9)
> 	at org.apache.spark.sql.catalyst.parser.ParseErrorListener$.syntaxError(ParseDriver.scala:212)
> 	at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
> 	at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:544)
> 	at org.antlr.v4.runtime.DefaultErrorStrategy.reportUnwantedToken(DefaultErrorStrategy.java:377)
> 	at org.antlr.v4.runtime.DefaultErrorStrategy.singleTokenDeletion(DefaultErrorStrategy.java:548)
> 	at org.antlr.v4.runtime.DefaultErrorStrategy.recoverInline(DefaultErrorStrategy.java:467)
> 	at org.antlr.v4.runtime.Parser.match(Parser.java:206)
> 	at org.apache.spark.sql.catalyst.parser.SqlBaseParser.singleMultipartIdentifier(SqlBaseParser.java:519)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org