HyukjinKwon commented on code in PR #52637:
URL: https://github.com/apache/spark/pull/52637#discussion_r2437721004


##########
python/pyspark/sql/conversion.py:
##########
@@ -321,7 +322,7 @@ def convert_decimal(value: Any) -> Any:
                         if not nullable:
                             raise PySparkValueError(f"input for {dataType} 
must not be None")
                         return None
-                    return value
+                    return round(value, dataType.scale).normalize()

Review Comment:
   I think no. This is only used in Spark Connect IIUC



-- 
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]

Reply via email to