Welcome to the community! Have you checked your SQL against your DB first to validate the syntax? A SQL bad statement error is normally caused by an SQL syntax issue.
@carly.richmond yes I checked the sql in my db and it worked fine . I think maybe because of double quotes but I skipped it with backslash and it still didn't work
Thanks for confirming @Hind_Alla. I'm not sure if it's just the formatting here on discuss, but it could be the length of the query if it's overflowing onto another line in your file. Can you try the statement_filepath property and see if extracting the query to a separate file helps?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.