为什么 "sys.sql_expression_dependencies" 对 Azure 数据仓库中的存储过程没有任何引用?

Why does "sys.sql_expression_dependencies" doesn't have any reference for stored procedures in Azure Data Warehouse?

这是针对 Azure 数据仓库的。

我正在尝试在 Power BI 中创建一个显示存储过程中使用的 tables 的报告。我可以为视图做类似的事情,但不能为存储过程做同样的事情。 "sys.sql_expression_dependencies" table 有视图引用的记录,但没有任何存储过程的引用。下面是我正在使用的查询,它给出了零条记录。

   SELECT   sproc.referencing_id as sproc_id
            ,o.name AS sproc_name
            ,referenced_entity_name AS table_name 
            ,type_desc
    FROM    sys.sql_expression_dependencies sproc
    LEFT JOIN sys.objects o WITH (NOLOCK) 
        ON sproc.referencing_id = o.object_id 
    WHERE type_desc like '%Procedure%'

我的问题是

我试图避免在 sys.sql_modules.definition 列中搜索 table 个名字。

我进行了研究,发现根据 Microsoft 文档 "sys.sql_expression_dependencies" 应该包含存储过程的依赖项信息。

https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-sql-expression-dependencies-transact-sql?view=sql-server-2017

我在 MSDN 论坛上发布了同样的问题,看看我是否遗漏了 Azure 数据仓库中的任何设置。主持人与产品团队核对并确认此时 "sys.sql_expression_dependencies" 仅包含视图的依赖项。他们将很快更新文档。

https://social.msdn.microsoft.com/Forums/en-US/84493a3b-fc2c-4009-82f5-2e7cc56c3eed/why-does-8220syssqlexpressiondependencies8221-doesnamp39t-have-any-reference-for-stored?forum=AzureSQLDataWarehouse

希望这对正在寻找存储过程和表链接的任何人有所帮助。