Yuming Wang created SPARK-28644:
-----------------------------------

             Summary: Port HIVE-10646: ColumnValue does not handle NULL_TYPE
                 Key: SPARK-28644
                 URL: https://issues.apache.org/jira/browse/SPARK-28644
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Yuming Wang


Port HIVE-10646 to fix Hive 0.12's beeline can not select null:
{code:sql}
Connected to: Hive (version 3.0.0-SNAPSHOT)
Driver: Hive (version 0.12.0)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 0.12.0 by Apache Hive
0: jdbc:hive2://localhost:10000> select null;
org.apache.thrift.transport.TTransportException
        at 
org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
        at 
org.apache.thrift.transport.TSaslTransport.readLength(TSaslTransport.java:346)
        at 
org.apache.thrift.transport.TSaslTransport.readFrame(TSaslTransport.java:423)
        at 
org.apache.thrift.transport.TSaslTransport.read(TSaslTransport.java:405)
{code}

Server log:
{noformat}
19/08/07 09:34:07 ERROR TThreadPoolServer: Error occurred during processing of 
message.
java.lang.NullPointerException
        at 
org.apache.hive.service.cli.thrift.TRow$TRowStandardScheme.write(TRow.java:388)
        at 
org.apache.hive.service.cli.thrift.TRow$TRowStandardScheme.write(TRow.java:338)
        at org.apache.hive.service.cli.thrift.TRow.write(TRow.java:288)
        at 
org.apache.hive.service.cli.thrift.TRowSet$TRowSetStandardScheme.write(TRowSet.java:605)
        at 
org.apache.hive.service.cli.thrift.TRowSet$TRowSetStandardScheme.write(TRowSet.java:525)
        at org.apache.hive.service.cli.thrift.TRowSet.write(TRowSet.java:455)
        at 
org.apache.hive.service.cli.thrift.TFetchResultsResp$TFetchResultsRespStandardScheme.write(TFetchResultsResp.java:550)
        at 
org.apache.hive.service.cli.thrift.TFetchResultsResp$TFetchResultsRespStandardScheme.write(TFetchResultsResp.java:486)
        at 
org.apache.hive.service.cli.thrift.TFetchResultsResp.write(TFetchResultsResp.java:412)
        at 
org.apache.hive.service.cli.thrift.TCLIService$FetchResults_result$FetchResults_resultStandardScheme.write(TCLIService.java:13192)
        at 
org.apache.hive.service.cli.thrift.TCLIService$FetchResults_result$FetchResults_resultStandardScheme.write(TCLIService.java:13156)
        at 
org.apache.hive.service.cli.thrift.TCLIService$FetchResults_result.write(TCLIService.java:13107)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:58)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at 
org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:53)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:310)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:819)
{noformat}





--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to