在Delta Live Table(青铜,黄金,银..)中获得数据质量

发布于 2025-02-02 17:30:11 字数 188 浏览 4 评论 0原文

如何检查Delta Live Table是否使用Python的青铜,黄金或银层(区域)?我有用于创建Delta Live Table管道的笔记本,我需要知道数据质量是什么(银,青铜,黄金)。如何与Python获取这些信息?

在sql中存在类似tblProperties('Bronze'),是否有python类似的东西?

How to check if Delta Live Table is in bronze, gold or silver layer(zone) with python? I have notebook for creating Delta Live Table pipeline, and I need to know what is quality of data(silver, bronze, gold). How to get that information with python?

In SQL exist something like TBLPROPERTIES('BRONZE'), is there anything like that for python?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

因为看清所以看轻 2025-02-09 17:30:11

您可以做这样的事情:

@dlt.table(
  comment="Bronze live streaming table for Test data",
  name="bronze_test_table",
  table_properties={
    "quality": "bronze"
  }
)

You can do something like this:

@dlt.table(
  comment="Bronze live streaming table for Test data",
  name="bronze_test_table",
  table_properties={
    "quality": "bronze"
  }
)
用心笑 2025-02-09 17:30:11

如果您的SQL解决方案直接运行

spark.sql('''SHOW TBLPROPERTIES table_name'')

If you have a sql solution run it directly with

spark.sql('''SHOW TBLPROPERTIES table_name'')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文