Delete Empty column

Seven Stars

Delete Empty column

Dear Folks

 

i have a csv file and i want to move in SQL but  CSV file contain empty Column how i can delete it.


Accepted Solutions
Highlighted
Seven Stars

Re: Delete Empty column

If you don't want to pass the NULL column to DB table, then don't mentioned the column name in DB table schema. It will not load the data into table.

 

For eg. you have csv file of below format:

e_id, Fname, Lname, City

and in DB you have: e_id, Fname, Lname

 

1) In tMap, you don;t need to mentioned the "City" column in output schema. It will load only 3 columns to DB table.

 

2) Using tFilterColumn, just delete the "City" column for tFilterColumn schema. It will load only 3 columns to DB table.

 

 

Let me know if you required anything else.


Regards,
Mohit

View solution in original post


All Replies
Nine Stars

Re: Delete Empty column

Hi,

 

Can you please provide more details?

 

Regards,

 

Veeru Boppudi
Sixteen Stars TRF
Sixteen Stars

Re: Delete Empty column

Want to remove a column from a dataflow? Use tFilterColumn.

TRF
Highlighted
Seven Stars

Re: Delete Empty column

If you don't want to pass the NULL column to DB table, then don't mentioned the column name in DB table schema. It will not load the data into table.

 

For eg. you have csv file of below format:

e_id, Fname, Lname, City

and in DB you have: e_id, Fname, Lname

 

1) In tMap, you don;t need to mentioned the "City" column in output schema. It will load only 3 columns to DB table.

 

2) Using tFilterColumn, just delete the "City" column for tFilterColumn schema. It will load only 3 columns to DB table.

 

 

Let me know if you required anything else.


Regards,
Mohit

View solution in original post

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog