Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37802

composite field name like `field name` doesn't work with Aggregate push down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0, 3.3.0
    • 3.2.1, 3.3.0
    • SQL
    • None

    Description

      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)
      

      Attachments

        Activity

          People

            huaxingao Huaxin Gao
            huaxingao Huaxin Gao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: