You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nguyen Quang Huy (Jira)" <ji...@apache.org> on 2021/05/20 02:53:00 UTC
[jira] [Commented] (SPARK-33428) conv UDF returns incorrect value
[ https://issues.apache.org/jira/browse/SPARK-33428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17348024#comment-17348024 ]
Nguyen Quang Huy commented on SPARK-33428:
------------------------------------------
should we consider return null value if overflow occur since bigInt cann't handle signed and unsigned base?
> conv UDF returns incorrect value
> --------------------------------
>
> Key: SPARK-33428
> URL: https://issues.apache.org/jira/browse/SPARK-33428
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Yuming Wang
> Priority: Major
>
> How to reproduce this issue:
> {noformat}
> spark-sql> select java_method('scala.math.BigInt', 'apply', 'c8dcdfb41711fc9a1f17928001d7fd61', 16);
> 266992441711411603393340504520074460513
> spark-sql> select conv('c8dcdfb41711fc9a1f17928001d7fd61', 16, 10);
> 18446744073709551615
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org