You are not logged in.

Unanswered posts

Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at We look forward to hearing from you there!

#1 2015-05-27 09:36:28

2 posts

aiman.sarosh said:

[resolved] How to create table schema dynamically?

Hi have 4 tables in oracle. i am writing a single job that will pull data from oracle tables and dump to hdfs (instead of writing 4 different jobs for 4 different tables).
I am taking the table name from context.
But while pulling the data from oracle i have to statically specify the schema. This is killing my dynamic objective.
Here is the graph i am using:


In tOracleInput i need the "guess schema" part to be dynamic to guess the schemas for all the tables on the fly. Also in this component tOracleInput i have defined the schema with a single column entry with type "Dynamic".
tConvertType is being used to convert the "Dynamic" type to "String" type.
tJavaRow is being used for trimming the data.
and finally dumping the data into hdfs.

This whole setup is not working. the hdfs output file is containing 0 data. It isnt throwing any error though.

Where am i going wrong ?

Last edited by aiman.sarosh (2015-05-27 09:38:19)


#2 2015-05-27 10:06:37

2 posts

aiman.sarosh said:

Re: [resolved] How to create table schema dynamically?

found a solution.
i removed the tConvertType componet.
so now only 3 components:
In the tJavaRow i added the code:
String row = input_row.newColumn.toString();


#3 2015-05-27 10:29:54

Talend Team

xdshi said:

Re: [resolved] How to create table schema dynamically?


Thanks for posting that you resolved it by yourself. Feel free to let us know if there is any further help we can give.

Best regards

What we can do is to make sure that Talend will be your best choice!


Board footer

Talend Contributor Agreement - Talend Website Privacy Policy