Github user ijokarumawak commented on the issue:

    https://github.com/apache/nifi/pull/2645
  
    @pvillard31 Thanks for pointing that. Yes, it's indirectly related to 
NIFI-5044. If pre/post query statement is added to SelectHiveQuery, then 
statements such as 'set x=y' or 'add jar..' would be written there and will not 
be passed to findTableNames method I assume.
    
    However, for PutHiveQL, such queries can be bundled in the same FlowFile 
content. I filtered out only 'set x=y' statement, but it's not enough. 'add jar 
...' fails similarly. Moreover, if we're going to filter out those commands, we 
need to care all commands in this wiki page I guess.
    https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Cli
    It requires something like CommandProcessorFactory.
    
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/processors/CommandProcessorFactory.java#L51
    
    That will be overkill for this JIRA and findTableNames purpose. I will 
update this PR to simply lower the log level to INFO. Thanks!


---

Reply via email to