【发布时间】:2022-06-10 19:56:58
【问题描述】:
我正在使用 Azure Databricks,并且正在尝试创建一个 Delta 表。
Python 代码:
delta_save_path = "/mnt/ops/test/alerts"
try:
sqlContext.sql("CREATE TABLE ops.test_alerts USING DELTA LOCATION '" + delta_save_path + "'")
except Exception as e:
print(str(e))
错误信息:
You are trying to create an external table `ops`.`test_alerts`
from `/mnt/ops/test/alerts` using Databricks Delta, but there is no transaction log present at
`/mnt/ops/test/alerts/_delta_log`. Check the upstream job to make sure that it is writing using
format("delta") and that the path is the root of the table.
我做错了什么?
【问题讨论】:
标签: python databricks azure-databricks delta-lake