HomeForum
Welcome, Guest

Database Table structure change problem
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Database Table structure change problem

Database Table structure change problem 7 months, 1 week ago #4007

  • Allen
  • OFFLINE
  • Senior Boarder
  • Posts: 51
  • Karma: 0
Hi,

I have several transformations in which the reader is getting data from a database table. Now I want to add more columns to my database table. If I append columns to the table, it will not affect the transformation. However, if I insert columns, my transformation is ruined because it always recognize columns by column index instead of name. For example, I have column A, B and C in sequence in my database table, after some data validation and transformation, I get column 1, 2 ,3. A to 1, B to 2 and C to 3. Now I inserted a column D between A and B, and my database table has A, D, B, C in sequence. However, in my transformations, D replaced B, B replaced C and C is not connected, which end up with A to 1, D to 2, B to 3 (But I actually still want A to 1, B to 2, C to 3 and dont care about D). I can't understand the logic to recognize columns by index. Can we have the transformation recognize columns by name, not by index?

Re: Database Table structure change problem 7 months, 1 week ago #4010

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Can we have the transformation recognize columns by name, not by index?

People can write sql like

select customer.description,
category.description
from
customer,
category

How it supposed to work in this case?

There are several possible solutions.
1 use views instead
2 use select statement as data source
3 put transformation after data reader and use it for mapping only,
when you add new fields use autmap function.

We will have a look from our site what can be done about it as well.
Peter
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

Advanced ETL Processor's ability to validate and tranform data without actually loading it into the datawarehouse has saved us a lot of time. We were able to see how data will look like, once it is transformed and which records would fail during data validation.

Antony Clark,
RBS 

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top