val spark: SparkSession = ... spark.sessionState.sqlParser
SparkSqlParser is the default SQL parser of the SQL statements supported in Spark SQL.
SparkSqlParser supports variable substitution.
|Spark SQL supports SQL statements as described in SqlBase.g4 ANTLR grammar.|
SparkSqlParser is available as sqlParser of a
SparkSqlParser is used to translate an expression to the corresponding Column in the following:
scala> expr("token = 'hello'") 16/07/07 18:32:53 INFO SparkSqlParser: Parsing command: token = 'hello' res0: org.apache.spark.sql.Column = (token = hello)
SparkSqlParser is used to parse table strings into their corresponding table identifiers in the following:
Add the following line to
Refer to Logging.