wangyum commented on PR #36373:
URL: https://github.com/apache/spark/pull/36373#issuecomment-2185948606
Hi @yaooqinn It will throw NPE if connect thriftserver through Hive 1.2.1
after this PR.
How to reproduce:
```
yumwang@G9L07H60PK apache-hive-1.2.1-bin % bin/beeline -u
"jdbc:hive2://localhost:10000/"
ls: /Users/yumwang/Downloads/spark/lib/spark-assembly-*.jar: No such file or
directory
Connecting to jdbc:hive2://localhost:10000/
Connected to: Spark SQL (version 3.5.0)
Driver: Hive JDBC (version 1.2.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 1.2.1 by Apache Hive
0: jdbc:hive2://localhost:10000/> use default;
java.lang.NullPointerException
at
org.apache.hive.service.cli.ColumnBasedSet.<init>(ColumnBasedSet.java:50)
at
org.apache.hive.service.cli.RowSetFactory.create(RowSetFactory.java:37)
at
org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:368)
at org.apache.hive.beeline.BufferedRows.<init>(BufferedRows.java:42)
at org.apache.hive.beeline.BeeLine.print(BeeLine.java:1794)
at org.apache.hive.beeline.Commands.execute(Commands.java:860)
at org.apache.hive.beeline.Commands.sql(Commands.java:713)
at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:973)
at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:813)
at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:771)
at
org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:484)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:467)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Error: Error retrieving next row (state=,code=0)
```
Hive fixed this issue through HIVE-12049.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]