Generated Sql Insert statement

Highlighted
One Star

Generated Sql Insert statement

Dear have you any issue for that, i try to spool the sql statement generated by an TOracleOutput component with an insert but it display a "null"
System.out.println("Hello World");
System.out.println(((String)globalMap.get("tOracleOutput_1_QUERY")));
Regards
Highlighted
Seven Stars

Re: Generated Sql Insert statement

You have to check the advanced setting "Enable debug mode" for that globalMap variable to be populated.
Highlighted
One Star

Re: Generated Sql Insert statement

I have successfully printed out the query on to the console by using System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY"))); in the tjava component. after enabling the enable debug mode in the tmysqloutput. my question is why I am I unable to see the QUERY gloabal variable OUTLINE section(bottom left corner in the studio usually all the global variables are visible when we expand the component in the outline. is there any specific reason why the QUERY global variable is not included.

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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog