wangyum opened a new pull request #25217: [SPARK-28463][SQL][test-hadoop3.2] 
Thriftserver throws BigDecimal incompatible with HiveDecimal
URL: https://github.com/apache/spark/pull/25217
 
 
   ## What changes were proposed in this pull request?
   
   How to reproduce this issue:
   ```shell
   build/sbt clean package -Phive -Phive-thriftserver -Phadoop-3.2
   export SPARK_PREPEND_CLASSES=true
   sbin/start-thriftserver.sh
   
   [root@spark-3267648 spark]# bin/beeline -u 
jdbc:hive2://localhost:10000/default -e "select cast(1 as decimal(38, 18));"
   Connecting to jdbc:hive2://localhost:10000/default
   Connected to: Spark SQL (version 3.0.0-SNAPSHOT)
   Driver: Hive JDBC (version 2.3.5)
   Transaction isolation: TRANSACTION_REPEATABLE_READ
   Error: java.lang.ClassCastException: java.math.BigDecimal incompatible with 
org.apache.hadoop.hive.common.type.HiveDecimal (state=,code=0)
   Closing: 0: jdbc:hive2://localhost:10000/default
   ```
   
   This pr fix this issue.
   
   ## How was this patch tested?
   
   unit tests
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to