Skip to main content
Solved

Use existing Oracle table schema for writing into csv


stuart_miso
Participant
Forum|alt.badge.img+3

I have a whopping great big table in my workbench with 2100 attribute fields in it! 😯

The data originates from JSON files, and I need to write it into several csv files.

The csv files need to pick up the schemas of tables in an Oracle db. These tables have a couple of hundred attribute fields / columns in, so many of my attribute fields will be dropped from the massive table in the workbench when creating the csv. This is good!

The Oracle tables do not feature in the workbench at all, so I just need to grab the schema of the existing tables, bring them into the workbench, and use them in the csv writers.

I’ve tried to use Schema Scanner, and Schema Mapper but with no luck. I am sure the answer must be really simple and I am doing something wrong.

Any help will be much appreciated.

Stuart

Best answer by nielsgerrits

In a FeatureWriter, you can set the target format to CSV, then import the schema from a different source by choosing “Import from Dataset...” You can then select source files.

 

View original
Did this help you find an answer to your question?

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Best Answer
  • October 4, 2024

In a FeatureWriter, you can set the target format to CSV, then import the schema from a different source by choosing “Import from Dataset...” You can then select source files.

 


stuart_miso
Participant
Forum|alt.badge.img+3
  • Author
  • Participant
  • October 4, 2024

Thank you Niels, that is just what I am looking for, and it works perfectly. 😁


nielsgerrits
VIP
Forum|alt.badge.img+54

Cheers!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings