Details
Description
Not sure if this is related solely to Spark:
Parsing the following query errors in Calcite:
public static void main(String[] args) throws SqlParseException { String sqlQuery = "SELECT a AS 1a FROM FakeTable"; SqlParser.create(sqlQuery, SparkSqlDialect.DEFAULT.configureParser(SqlParser.config())).parseQuery(); }
Exception in thread "main" org.apache.calcite.sql.parser.SqlParseException: Encountered "1" at line 1, column 13.
However, Spark does accept such queries: