【问题标题】:Azure Table storage to Azure Table storage using Azure Data Factory using DateTime Parameterized queryAzure Table storage to Azure Table storage using Azure Data Factory using DateTime Parameterized query
【发布时间】:2019-12-23 00:18:58
【问题描述】:

我有一个 Azure 表存储,每天都会添加几条记录(通常是 3-5 条)。有几天不能添加记录,所以量非常低。这是具有预定义的 PartitionKey、RowKey 和 Timestamp 列的表结构:

我需要从 Azure 数据工厂查询此表以获取前一天的记录。因此,对于下面显示的示例数据,我可能会在 2019 年 4 月 26 日查询 2019 年 4 月 25 日的数据。原因是,一天的陈旧不会产生影响,这样,我就不必担心“水印”等。我只需查询前一天的数据并将其复制到 Azure Data 中的相同 Azure Table Lake Storage Gen 2。

我知道我需要根据前一天的“时间戳”列指定参数化查询,但不知道如何指定。

请指教。

【问题讨论】:

    标签: parameter-passing azure-table-storage azure-data-factory


    【解决方案1】:

    您可以在复制活动表存储源中设置查询sql。根据您的需要,它应该是这样的:

    time gt datetime'2019-04-25T00:00:00' and time le datetime'2019-04-2T00:00:00'
    

    我的示例数据如下:

    预览数据如下:

    请参阅此文档中的一些示例:https://docs.microsoft.com/en-us/azure/data-factory/connector-azure-table-storage#azuretablesourcequery-examples。

    【讨论】:

    • 谢谢。实际上我已经打开了另一个线程,它超越了这个并得到了我需要的帮助。这是该线程的链接:stackoverflow.com/questions/59463256/…
    • @Bharat 好的,也许我想念那个。谢谢你的分享。
    猜你喜欢
    • 2022-12-26
    • 2023-02-18
    • 1970-01-01
    • 2012-01-25
    • 1970-01-01
    • 2021-07-09
    • 2016-08-15
    • 2013-07-21
    • 2020-11-22
    相关资源
    最近更新 更多