You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zuotingbing (Jira)" <ji...@apache.org> on 2024/12/18 08:59:00 UTC
[jira] [Created] (SPARK-50610) we should fix the decimal precision on function toInspector(dataType: DataType) in HiveInspectors class
zuotingbing created SPARK-50610:
-----------------------------------
Summary: we should fix the decimal precision on function toInspector(dataType: DataType) in HiveInspectors class
Key: SPARK-50610
URL: https://issues.apache.org/jira/browse/SPARK-50610
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.5.3, 3.4.4
Reporter: zuotingbing
when we add some mask UDF on Decimal(18,10) type coloumn in hive-sdf moudle, the scale of the mask result value should be 10, but now is 18.
In JavaHiveDecimalObjectInspector class the default scale of HiveDecimal is 18, so we need to change to the correct decimal precision on function toInspector(dataType: DataType) in HiveInspectors class.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org