函数'GetMetadataPropertyValue'的第一个参数无效。输入流名称是预期的。 [英] First parameter of function 'GetMetadataPropertyValue' is invalid. Input stream name is expected.
问题描述
错误:函数'GetMetadataPropertyValue'的第一个参数无效。输入流名称是预期的。
Error: First parameter of function 'GetMetadataPropertyValue' is invalid. Input stream name is expected.
此查询适用于blob源:
This query works ok against a blob source:
SELECT
GetMetadataPropertyValue(input, '[User].[machineName]') AS MachineName
, TRY_CAST(NewTime AS BIGINT) AS [End NewTime]
FROM
input
这个不适用于最后(或LAG)会出错:
This one doesn't with the LAST (or LAG) added gives the error:
SELECT
GetMetadataPropertyValue(input, '[User].[machineName]') AS MachineName
, TRY_CAST(NewTime AS BIGINT) AS [End NewTime]
, LAST(TRY_CAST(NewTime AS BIGINT)) OVER (PARTITION BY Object, [Index], Name, NewCount LIMIT DURATION(hour, 24) WHEN NewState = '1') AS [Start NewTime]
FROM
input
Visual Studio版本15.9.7
流分析工具版本2.3.7000.1
推荐答案
你好,
确保查询中存在输入流名称。
有关此功能以及如何正确使用它的详细信息,请查看文章 GetMetadataPropertyValue 。
希望这会有所帮助。
这篇关于函数'GetMetadataPropertyValue'的第一个参数无效。输入流名称是预期的。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!