[ 
https://issues.apache.org/jira/browse/SPARK-31955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133822#comment-17133822
 ] 

Lin Gang Deng commented on SPARK-31955:
---------------------------------------

[~dongjoon] As  you said, EOL is the key to the problem. Sometimes, there is no 
newline character when SQL is submitted, or the newline character is removed by 
the third-party component. Maybe, spark or beeline should correctly parse SQL, 
whether or not there is EOL. Otherwise, users will be bothered by the wrong 
result.

> Beeline discard the last line of the sql file when submited to  thriftserver 
> via beeline
> ----------------------------------------------------------------------------------------
>
>                 Key: SPARK-31955
>                 URL: https://issues.apache.org/jira/browse/SPARK-31955
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.4
>            Reporter: Lin Gang Deng
>            Priority: Major
>
> I submitted a sql file on beeline and the result returned is wrong. After 
> many tests, it was found that the sql executed by Spark would discard the 
> last line.This should be beeline's bug parsing sql file.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to