关注 spark技术分享,
撸spark源码 玩spark最佳实践

SparkSqlParser — Default SQL Parser

SparkSqlParser — Default SQL Parser

SparkSqlParser is the default SQL parser of the SQL statements supported in Spark SQL.

SparkSqlParser supports variable substitution.

SparkSqlParser uses SparkSqlAstBuilder (as AstBuilder).

Note
Spark SQL supports SQL statements as described in SqlBase.g4 ANTLR grammar.

SparkSqlParser is available as sqlParser of a SessionState.

SparkSqlParser is used to translate an expression to the corresponding Column in the following:

SparkSqlParser is used to parse table strings into their corresponding table identifiers in the following:

SparkSqlParser is used to translate a SQL text to its corresponding logical operator in SparkSession.sql method.

Tip

Enable INFO logging level for org.apache.spark.sql.execution.SparkSqlParser logger to see what happens inside.

Add the following line to conf/log4j.properties:

Refer to Logging.

Variable Substitution

Caution
FIXME See SparkSqlParser and substitutor.
赞(0) 打赏
未经允许不得转载:spark技术分享 » SparkSqlParser — Default SQL Parser
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏