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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to