简体   繁体   English

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

[英]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.

相关问题 如何查看Azure Synapse中物化视图数据存储和维护成本? - How to check materialized view data storage and maintenance cost in Azure Synapse? Azure Stream 分析 - 如何在 Azure SQL db 中保存多个物联网设备的数据 - Azure Stream Analytics - How to save data for more than one IoT device in Azure SQL db 如何将json object写入Azure Data Explorer - How to write json object to Azure Data Explorer Azure Data Explorer 外部表分区有什么用? - What are Azure Data Explorer external table partitions good for? Terraform 和 Azure 数据浏览器 - Terraform and Azure Data Explorer 如何创建一个新表,只保留Bigquery中相同ID下超过5条数据记录的行 - How to create a new table that only keeps rows with more than 5 data records under the same id in Bigquery Azure 表备份检索超过 1000 行 - Azure table backup retrieve more than 1000 rows 在 Bigquery 中创建物化视图时的左连接解决方法 - Left join workaround when creating materialized view in Bigquery 如何使用正则表达式检测表中包含的文本(标量子查询产生多个元素) - How to detect a text contains in the table using regexp (scalar subquery produced more than one element) 无法在云 Firestore 集合中添加多个文档 - Can't add more than one document in the cloud firestore collection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM