Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] use Global Variable in tSqoopImport query ?

Hello - I am trying to use a Global Variable set in a previous step in tSqoopImport. I must have something wrong with my syntax.
Here is my query. Source system is Oracle.
"select  sysdate,  '\"+globalMap.get(\"Max_id\")+\"' from dual  where $CONDITIONS"
Here is the output it writes to file:

2016-03-21 15:25:04.0,"+globalMap.get("Max_id")+"

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I got it to work. Just needed to remove all the \
"select  sysdate,  '"+globalMap.get("Max_id")+"' from dual  where $CONDITIONS"

View solution in original post

1 Reply
Anonymous
Not applicable
Author

I got it to work. Just needed to remove all the \
"select  sysdate,  '"+globalMap.get("Max_id")+"' from dual  where $CONDITIONS"