增量时间旅行的语法错误 sql
Syntax error for time travel of delta sql
我运行增量文档中的示例:
SELECT * FROM delta.`/delta/events` VERSION AS OF 1
但出现以下错误:
mismatched input ‘AS’ expecting {<EOF>, ‘;’}(line 3, pos 44)
有谁知道正确的语法是什么?
Spark 版本:3.1.2
增量版本:1.0.0
配置spark如下:
spark.sql.extensions io.delta.sql.DeltaSparkSessionExtension
spark.sql.catalog.spark_catalog org.apache.spark.sql.delta.catalog.DeltaCatalog
此语法目前在开源版本中不受支持,因为它需要更改 Spark 以支持该语法(required changes are committed already). Specifically, this is a bug in the documentation that was copied from the Databricks Delta documentation. The issue with documentation will be fixed in the next major release - it was already reported。
我运行增量文档中的示例:
SELECT * FROM delta.`/delta/events` VERSION AS OF 1
但出现以下错误:
mismatched input ‘AS’ expecting {<EOF>, ‘;’}(line 3, pos 44)
有谁知道正确的语法是什么?
Spark 版本:3.1.2
增量版本:1.0.0
配置spark如下:
spark.sql.extensions io.delta.sql.DeltaSparkSessionExtension
spark.sql.catalog.spark_catalog org.apache.spark.sql.delta.catalog.DeltaCatalog
此语法目前在开源版本中不受支持,因为它需要更改 Spark 以支持该语法(required changes are committed already). Specifically, this is a bug in the documentation that was copied from the Databricks Delta documentation. The issue with documentation will be fixed in the next major release - it was already reported。