Processing of inconsistencies between source and target table structures in kettle

Source: Internet
Author: User

In the process of creating the data Warehouse, you often encounter such problems, for example: the source table because of business reasons for the new field, and ETL program is extracted according to the previous source table structure, if you do not rebuild the ETL program, the new indicator will not flow into the DW, the problem is as shown in

Create a simple input and output

As shown, there is a column3 field in the source table that is not matched to the

Here we can open the SQL editor, look at the type of the field, and then add that field to the target table.

PS: Be careful to click on the Execute button in the SQL Editor, although the button will automatically add the fields that correspond to the source table to the target table, but if the target table has

The comment content will be overwritten by this operation, which simply performs a simple create table operation.

In addition , if you want the new table fields to take effect in the target table in time, you must clear the Dblink data cache corresponding to the target table .

Such as:

The first method is in the SQL editor window above

The second method is to convert the Dblink list

Processing of inconsistencies between source and target table structures in kettle

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.