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

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

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog