[ https://issues.apache.org/jira/browse/SPARK-44973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-44973: ---------------------------------- Summary: Fix ArrayIndexOutOfBoundsException in conv() (was: CONV('-9223372036854775808', 10, -2) throws ArrayIndexOutOfBoundsException) > Fix ArrayIndexOutOfBoundsException in conv() > -------------------------------------------- > > Key: SPARK-44973 > URL: https://issues.apache.org/jira/browse/SPARK-44973 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 3.3.3, 3.4.1, 3.5.0 > Reporter: Gera Shegalov > Assignee: Mark Jarvin > Priority: Major > Labels: pull-request-available > Fix For: 3.4.2, 4.0.0, 3.5.1, 3.3.4 > > > {code:scala} > scala> sql(s"SELECT CONV('${Long.MinValue}', 10, -2)").show(false) > java.lang.ArrayIndexOutOfBoundsException: -1 > at > org.apache.spark.sql.catalyst.util.NumberConverter$.convert(NumberConverter.scala:183) > at > org.apache.spark.sql.catalyst.expressions.Conv.nullSafeEval(mathExpressions.scala:463) > at > org.apache.spark.sql.catalyst.expressions.TernaryExpression.eval(Expression.scala:821) > at > org.apache.spark.sql.catalyst.expressions.ToPrettyString.eval(ToPrettyString.scala:57) > at > org.apache.spark.sql.catalyst.optimizer.ConstantFolding$.org$apache$spark$sql$catalyst$optimizer$ConstantFolding$$constantFolding(expressions.scala:81) > at > org.apache.spark.sql.catalyst.optimizer.ConstantFolding$.$anonfun$constantFolding$4(expressions.scala:91) > {code} -- 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