简体   繁体   English

Azure 数据工厂和 Cosmos DB

[英]Azure Data Factory and Cosmos DB

I am new to ADF and Cosmos DB as well.我也是 ADF 和 Cosmos DB 的新手。

I am using Copy activity in ADF to fetch data from Cosmos DB and copy it to Synapse DWH我在 ADF 中使用 Copy 活动从 Cosmos DB 获取数据并将其复制到 Synapse DWH

I am trying to fetch yesterday's data using the following query in adf:我正在尝试使用 adf 中的以下查询获取昨天的数据:

Select * from c where TimestampToDateTime(c.timeStamps)>”@{FormatDateTime(subtractFromTime(utcnow(),2,’Day’),’yyyy-MM-dd’)}”

The query keeps timing out when I try to preview data.当我尝试预览数据时,查询一直超时。 Am I going in the right direction?我是否朝着正确的方向前进?

Considering you have the timeStamps in UTC date and time ISO 8601 value in the format YYYY-MM-DDThh:mm:ss.fffffffZ考虑到您有 UTC 日期和时间 ISO 8601 值中的时间戳,格式为 YYYY-MM-DDThh:mm: timeStamps

SELECT * FROM c where c.ModifiedDate > DateTimeAdd("dd", -1, GetCurrentDateTime ()) and c.ModifiedDate < GetCurrentDateTime ()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 azure 数据工厂中获取对 cosmos db 的查询的标量值 - Unable to get scalar value of a query on cosmos db in azure data factory 使用Azure Data Factory将Azure cosmos db中的json数据复制到Azure sql - Copy json data from Azure cosmos db to Azure sql using Azure Data Factory 从cosmos db查询特定的时间范围数据,并通过azure数据工厂将其存储在sql数据库中 - Query a specific time range data from cosmos db and store it in sql database via azure data factory Azure 数据工厂将数据 Blob 复制到 Cosmos db - 需要帮助跳过 2MB 文件 - Azure Data factory Copy data Blob to Cosmos db - need help skipping 2MB files 数据工厂中的 Azure cosmos db 错误 - 数据流接收器 -&gt; 作业失败,原因是:从 StructType 转换 - Azure cosmos db error in data factory - data flow sink -> job failed due to reason: Conversion from StructType ADF(azure数据工厂)将数据从SQL Server复制到Cosmos DB,其中字段包含json对象 - ADF (azure data factory) copy data from SQL Server to Cosmos DB with field contain json object 如何将 map 我的 json 路径从 Azure 数据工厂进入 cosmos db - How to map my json path into cosmos db from Azure Data Factory Azure 数据工厂:从 csv 读取并逐行复制到 cosmos db - Azure Data Factory: read from csv and copy row by row to a cosmos db 使用Azure数据工厂从Cosmos DB文档中提取数组属性 - Extracting array properties from Cosmos DB documents using Azure Data Factory Azure Cosmos DB 数据迁移工具无法连接到 Cosmos DB - Azure Cosmos DB Data Migration Tool unable to connect to Cosmos DB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM