Data Flow->> Merge

Source: Internet
Author: User

The merge component has a similar effect to union all, which is to combine the result set of two input sources into one. But the difference is:

1) The result set of the merge input needs to be sorted first (this is doubtful)

2) Merge is explicitly required for the data type of the two result sets entered, and must be the same, for example a field of a result set is int, and the corresponding field of the B result set must also be int. However, for data lengths, such as varchar, there is no requirement that the same length be required. But just can't one is varchar, one is nvarchar.

3) Union all supports more than two input result sets and the merge supports only two.

If you look at it this way, it seems to be all done with union.

The above mentioned 1th said that the data set must first be ranked, after the experiment found that it is not. Two tables as input, although the merge requires you to change the issorted to True, then set the SortKeyPosition value of one or some of the fields in the output columns, But it does not mean that setting these two values is equal to helping me to sort the data sets when run-time, because I have observed the order of data insertions in the input table, or the Order of table +b tables, and my sortkeyposition value is set to sort the other fields. If it really helped me out of order, it wouldn't have happened. The +b Table of table A is inserted in this order. And the result is that the package ran successfully. Therefore, the result set of the merge input needs to be sorted before this is not the premise.

Data Flow->> Merge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.