模块' dlt'没有属性' table' -Databricks和Delta Live Tables
我是Databricks和Delta Live Tables的新手。我在Python创建Delta Live Table有问题。
如何从filestore中的json文件中创建delta live表?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它是一个装饰器,所以我认为您还需要一个功能。意思
是在银函数中,您可以将其读取为:
也是从屏幕截图中,我不确定,您是作为管道运行的,还是要运行笔记本电脑?后者不起作用。
It is a decorator, so I think you also need a function after. Meaning
In silver function then you can read it as:
Also from your screenshots I am not sure, are you running all this as a pipeline or are you trying to run a Notebook? The latter does not work.
桑德罗的答案应该解决您的问题。对于使用实时桌子摄入JSON文件,您可以在某些用例中查看本文“ rel =“ nofollow noreferrer”> https://medium.com/@chaobioz/create-delta-live-tables-dlt-dlt-dlt-dynamisaly-with-pyspark-e06a718199c8
同样也可以生产,最好将自动装载机作为生产出色地。
Sandro’s answer should solve your problem. For ingesting json files with live tables, you can check this article for some use cases https://medium.com/@chaobioz/create-delta-live-tables-dlt-dynamically-with-pyspark-e06a718199c8
Also if for production, better use auto loader as well.
您可以检查文档本身中提到的此过程。
阅读在要求上方的步骤,我想这会有所帮助。
You can check this process mentioned in the documentation itself.
https://docs.databricks.com/workflows/delta-live-tables/delta-live-tables-quickstart.html
Read the steps just above the requirement, I guess that would help.
使用Databricks群集,13上方的运行时运行时
Use Databricks cluster, runtime above 13
在导入DLT之前,您可以尝试安装DLT吗?
%PIP安装DLT
Could you try to install dlt before importing it?
%pip install dlt