[resolved] Execute dinamic SQLs

One Star

[resolved] Execute dinamic SQLs

Hello,

I need to execute dynamically some sql's. So the flow should be like:

tTeradataInput - tmap - tFileOutputExcel - tTeradataInput2
Basically, tTeradataInput is generating the sql based on some parameters, afterwards with tTeradataInput2 I need to execute the sql generated with tTeradataInput.

Do you have any ideas how I can do it?
Right now I have problems in converting data obtained in tFileOutputExcel (csv) to convert it into a txt file, so afterwards to read it with a tJavaRow and execute the last tTeradataInput2.

Maybe you have a simple solution. Can you please help me with an idea?

Lucian Sabau

Highlighted
Forteen Stars

Re: [resolved] Execute dinamic SQLs

not sure I understand You correctly, but:
You can use tFlowToIterate for store any flow data into variables, than You can use this variables value on feature steps in SQL, like:
"SELECT col1, col2, col3 FROM "+((String)globalMap.get("v_TableName")(+" WHERE "+((string)globalMap.get(v_ParamOne))+ ... etc
-----------

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

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now