简体   繁体   English

Azure 数据工厂 - 同一管道中的不同复制数据映射视图?

[英]Azure Data Factory - different copy data mappings views in the same pipeline?

I am trying to set up a pipeline with copy data activity in Azure Data Factory and I am confused by the different view of mapping in the copy activity.我正在尝试在 Azure 数据工厂中设置具有复制数据活动的管道,我对复制活动中映射的不同视图感到困惑。 I have created the pipeline from the template "Copy data from on premise SQL Server to SQL Azure" and I am cloning the activity so there shouldn't be any differences.我已经从模板“将数据从本地 SQL 服务器复制到 SQL Azure”中创建了管道,并且我正在克隆活动,因此不应该有任何差异。 The source is the same in both activities and I use query against the source database.这两个活动的源是相同的,我对源数据库使用查询。

Here's how I see it:这是我的看法:

Original copy activity:原件复制活动:

在此处输入图像描述

Cloned copy activity:克隆副本活动:

在此处输入图像描述

I would like to understand why I see different views of mapping.我想了解为什么我看到不同的映射视图。

Thanks in advance!提前致谢!

I don't that's an problem.我不认为这是个问题。 When we clone a copy active, before we debug or run the pipeline, we need to check all the settings manually.当我们克隆一个活动副本时,在我们调试或运行管道之前,我们需要手动检查所有设置。

From your screenshots, original copy activity miss the source schema during mapping.从您的屏幕截图中,原始副本活动在映射期间错过了源架构。 Just import schema will be solved it.只需导入架构即可解决。 在此处输入图像描述

And the cloned copy active seams import schema automatically.并且克隆的副本活动接缝会自动导入架构。 Not sure if all the columns are mapped(I think not).不确定是否所有列都已映射(我认为不是)。 Some suggestions:一些建议:

  1. Please import the schema in source dataset firstly, and fully set one copy active.请先导入源数据集中的模式,并完全设置一个副本处于活动状态。
  2. Then clone the copy active which may avoid the problem.然后克隆副本活动,这可能会避免该问题。

Data Factory may not very smartly and even we clone active, we still should check all the settings in each actives.数据工厂可能不是很聪明,即使我们克隆活动,我们仍然应该检查每个活动中的所有设置。

Update:更新:

Like @JeffRamos said, sinks are different then the mapping will be different.就像@JeffRamos 所说,接收器不同,那么映射就会不同。

We are glad to hear that you have figured it out:我们很高兴听到您已经弄清楚了:

  • "I have figured it out - I was using the query that contained the "count(*)" aggregate. Removing it and the "group by" clause made the mapping view the same as for the original Copy activity." “我已经弄清楚了——我使用的是包含“count(*)”聚合的查询。删除它和“group by”子句使映射视图与原始复制活动相同。”

Thanks for @JeffRamos's useful comment again.再次感谢@JeffRamos 的有用评论。

HTH. HTH。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM