Created on
03-11-2020
03:27 PM
- last edited on
03-11-2020
04:35 PM
by
ask_bill_brooks
Hi, I'm trying to set a query band in Teradata using NiFi.
Here's the statement:
SET QUERY_BAND = 'LOB=LOB_NAME||Region=REGION_NAME||SourceApp=NiFi||AppName=${Job};' FOR SESSION
When I run this in the SQL Pre-Query portion of the of the ExecuteSQL processor, I get a error saying the string the string is not terminated. The processor is splitting the string at the semicolon in the set query band statement (which is how the ExecuteSQL processor is supposed to work).
Is there a way to force the processor to ignore the semicolon that exists in the middle of string?
Created 03-11-2020 04:45 PM
Hi @Wevo
While we welcome your question, you should consider the liklihood that you might get a more timely and useful response by posting this to the relevant Teradata community.
Created 03-12-2020 07:29 AM
Thanks for the note @ask_bill_brooks, but the problem isn't with the Teradata statement that I'm submitting. The issue is with how the ExecuteSQL processor is parsing the statement.
The statement itself works fine when subumitted in the SQL Select query area of the ExecuteSQL processor.
The SQL pre-query is expecting a semicolon delimited list of statements and hence the semicolon in the set query band statement is causing an incomplete statement to be submitted.
Created 03-17-2020 03:21 PM
Hello, i went ahead and posted your question in our teradata community website. Please refer to the link below. https://support.teradata.com/community?id=community_question&sys_id=0ca67dcd1babc4140a487591dd4bcb2f...