【发布时间】:2019-11-20 20:48:30
【问题描述】:
我正在尝试将数据从表存储复制到另一个存储帐户的另一个表存储,为此,我正在使用 Azure 数据工厂中的复制活动。
我想筛选要复制到接收器表存储的行,因为 Azure 数据工厂提供了一个定义查询的选项。 我想对数据类型为字符串但包含数值的分区键应用过滤器。 我正在查看此文档: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops 那里说类型转换对于“eq”、“le”、“ge”等比较运算符是隐式的
所以如果我的查询是“PartitionKey eq 0”它会失败并给出这个错误:
A storage operation failed with the following error 'The remote server returned an error: (400) Bad Request.'.. Activity ID:edf8e608-d25e
但如果我将查询定义为“PartitionKey eq '0'”,它会起作用。
我想获取特定数字范围内的行,我需要将分区键转换为数值,我该怎么做?
“startsWith”和“endsWith”也不起作用
例如,此查询 PartitionKey startsWith '10' 给出与上述相同的错误。
【问题讨论】:
标签: azure copy azure-table-storage azure-data-factory azure-data-factory-2