繁体   English   中英

Azure Data Explorer 创建物化视图时如何添加多个维表

[英]how to add more than one dimension table while creating a materialized view in Azure Data Explorer

我正在尝试使用 2 维表创建物化视图,但使用以下语法时出错,

.create async materialized-view with (backfill=true, dimensionTables = 'SalesUserTable','ProductTable') SalesSummary on table PurchaseTable
{
PurchaseTable | join kind = inner SalesUserTable on $left.SalesUserId == $right.SalesUserID
| join kind = inner ProductTable on $left.ProductID == $right.ProductID
| extend TotalPrice = (Quantity*Price)
| summarize
TotalQuantity = sum(Quantity),
TotalPrice = sum(TotalPrice)
by SalesUserId, ProductID, SalesUserName=Name, ProductName=Name1
}

请用正确的语法帮助我添加多维表

将表名放在组引号中:

.create async materialized-view with (backfill=true, dimensionTables = 'SalesUserTable, ProductTable') SalesSummary on table PurchaseTable

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM