您好,我正在尝试整理一个脚本,以在表格数据模型中创建多个分区。我一次可以做一个,但是以下消息似乎是错误的倍数。 无法识别的JSON属性:分区。检查路径“ create.partitions”
我正在使用以下(匿名)生成的脚本。
{
"create": {
"parentObject": {
"database": "MY_TABULAR",
"table": "MY_TABLE"
},
"partitions": [{
"name": "MY_TABLE 12 2018-09",
"source": {
"query": "SELECT * FROM [Fact].[MY_TABLE] WHERE PlanKey = 12 AND dateKey BETWEEN 20180901 AND 20180930",
"dataSource": "MY_DW"
}
},
{
"name": "MY_TABLE 12 2018-10",
"source": {
"query": "SELECT * FROM [Fact].[MY_TABLE] WHERE PlanKey = 12 AND dateKey BETWEEN 20181001 AND 20181031",
"dataSource": "MY_DW"
}
},
{
"name": "MY_TABLE 12 2018-11",
"source": {
"query": "SELECT * FROM [Fact].[MY_TABLE] WHERE PlanKey = 12 AND dateKey BETWEEN 20181101 AND 20181130",
"dataSource": "MY_DW"
}
}]
}
}
据我从参考文献中可以看出,这是正确的,但SSMS似乎并不喜欢它。
答案 0 :(得分:1)
您可以通过使用<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="http://localhost:4200" />
<add name="Access-Control-Allow-Methods" value="GET,POST,OPTIONS,PUT,DELETE,PATCH" />
<add name="Access-Control-Allow-Headers" value="Content-Type, X-Requested-With" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeader></httpProtocol></system.webServer>
命令执行多个将创建分区的Sequence
命令来执行此操作。 CreateOrReplace
命令的确具有可选的Sequence
属性,但是只有刷新操作并行运行(每个MSDN)。下面的示例对此进行了详细说明。
maxParallelism