[ 
https://issues.apache.org/jira/browse/SPARK-33428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan updated SPARK-33428:
--------------------------------
    Description: 
# MySQL allows leading spaces but Spark does not.
 # If the input string is way too long, Spark fails with 
ArrayIndexOutOfBoundException

  was:
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}



> Match the behavior of conv function to MySQL's
> ----------------------------------------------
>
>                 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
>             Fix For: 3.2.0
>
>
> # MySQL allows leading spaces but Spark does not.
>  # If the input string is way too long, Spark fails with 
> ArrayIndexOutOfBoundException



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to