[ https://issues.apache.org/jira/browse/SPARK-31955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130795#comment-17130795 ]
Lin Gang Deng commented on SPARK-31955: --------------------------------------- {code:java} // code placeholder 0: jdbc:hive2://hadoop.spark-sql.hadoo> select * from info_dev.beeline_test; +-----+-------+--+ | id | name | +-----+-------+--+ | 3 | ccc | | 2 | bbb | | 1 | aaa | +-----+-------+--+ 3 rows selected (1.402 seconds) {code} Then sql as bellows, {code:java} // code placeholder [test@192.168.0.1 denglg]$ cat -A test2.sql select * from info_dev.beeline_test$ where name='bbb';[test@192.168.0.1 denglg]$ {code} Result as bellows, {code:java} // code placeholder 0: jdbc:hive2://spark-sql.hadoo> select * from info_dev.beeline_test 0: jdbc:hive2://spark-sql.hadoo> where name='bbb';+-----+-------+--+ | id | name | +-----+-------+--+ | 3 | ccc | | 2 | bbb | | 1 | aaa | +-----+-------+--+ 3 rows selected (1.594 seconds) {code} As you can see,it got 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: Blocker > > 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