Table 存储查询 CopyPipeline

Table Storage query CopyPipeline

我需要配置 Azure 数据工厂 CopyPipeline 源查询以通过 PartitionKey 从存储 Table 复制数据,但我找不到如何做...

这里查询的是什么语言?我发现了一些关于 FetchXML 的东西,但我完全不知道。还有其他变体吗?

例如(在 T-SQL 中)——我只需要这样的东西:

SELECT * FROM [StorageTableName] WHERE PartitionKey = [MyPartKey]

感谢您的帮助...

编辑: 我找到这篇文章 (https://docs.microsoft.com/cs-cz/azure/data-factory/v1/data-factory-azure-table-connector#azure-table-copy-activity-type-properties) 并尝试查询示例:

"azureTableSourceQuery": "$$Text.Format('PartitionKey ge \'{0:yyyyMMddHH00_0000}\' and PartitionKey le \'{0:yyyyMMddHH00_9999} \'', SliceStart)"

,但我得到的只是错误:

存储操作失败,出现以下错误 'The remote server returned an error: (400) Bad Request.'.. Activity ID:...

table存储查询代码是这样的:

1. (PartitionKey eq 'Sales') and (RowKey eq 'Smith')
2. PartitionKey eq '1' and RowKey ge '2' 
3. PartitionKey eq 'Sales' and LastName eq 'Smith'

用您的 PartitionKey 和 RowKey 值替换“0”和“1”。

您可以参考这篇文档How your choice of PartitionKey and RowKey impacts query performance

希望对您有所帮助。