[英]how to add more than one dimension table while creating a materialized view in Azure Data Explorer
I am trying to create a materialized view with 2 dimension tables, but getting error with the below syntax,我正在尝试使用 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
}
Please help me with the right syntax to add multiple dimension table请用正确的语法帮助我添加多维表
Put table names in a single set of quotes:将表名放在一组引号中:
.create async materialized-view with (backfill=true, dimensionTables = 'SalesUserTable, ProductTable') SalesSummary on table PurchaseTable
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.