Process 处理SSAS表格-一个分区和一个数据库
目标是使用默认的“分区”模式(其他表没有分区)刷新一个命名分区和其他对象,而不使用定义表 等等: 这是我们的实际代码:Process 处理SSAS表格-一个分区和一个数据库,process,ssas,tabular,partition,Process,Ssas,Tabular,Partition,目标是使用默认的“分区”模式(其他表没有分区)刷新一个命名分区和其他对象,而不使用定义表 等等: 这是我们的实际代码: { "refresh": { "type": "full", "objects": [ { "database": "Database", "table": "Table1", "partition": "P1" }, //This code is confusing
{
"refresh": {
"type": "full",
"objects": [
{
"database": "Database",
"table": "Table1",
"partition": "P1"
},
//This code is confusing
{
"database": "Database",
"table": "Table2"
},
{
"database": "Database",
"table": "Table3"
}
....
//
]
}
}
你的代码完全有效。所有表都至少有一个分区。出于这里的目的,可以将表看作一个或多个分区的容器 因此,当执行刷新命令时,必须定义模型中哪些对象将被刷新。就你而言
{
// the command you will run, "refresh"
"refresh": {
// The type of refresh, "full"
"type": "full",
// The scope of your command, an array of objects which will be refreshed
"objects": [
// First object, a single partition, "P1" in the table "Table1"
{
"database": "Database",
"table": "Table1",
"partition": "P1"
},
// The second object, the table "Table2" (technically, all partitions in "Table2",
// which in your case is 1 default partition)
{
"database": "Database",
"table": "Table2"
},
// The third object to be processed, "Table3"
{
"database": "Database",
"table": "Table3"
}
// More objects to be processed
, ...
//
]
}
}
您不能定义“一个分区和多维数据集中的所有其他内容”的命令。您可以定义一个由单个分区和每个表显式组成的数组
{
// the command you will run, "refresh"
"refresh": {
// The type of refresh, "full"
"type": "full",
// The scope of your command, an array of objects which will be refreshed
"objects": [
// First object, a single partition, "P1" in the table "Table1"
{
"database": "Database",
"table": "Table1",
"partition": "P1"
},
// The second object, the table "Table2" (technically, all partitions in "Table2",
// which in your case is 1 default partition)
{
"database": "Database",
"table": "Table2"
},
// The third object to be processed, "Table3"
{
"database": "Database",
"table": "Table3"
}
// More objects to be processed
, ...
//
]
}
}