Delete Empty column

Highlighted
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
Six 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

All Replies
Nine Stars

Re: Delete Empty column

Hi,

 

Can you please provide more details?

 

Regards,

 

Veeru Boppudi
Fifteen Stars TRF
Fifteen Stars

Re: Delete Empty column

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

TRF
Six 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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download