[ https://issues.apache.org/jira/browse/SPARK-32115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-32115. ----------------------------------- Fix Version/s: 3.1.0 2.4.7 3.0.1 Resolution: Fixed Issue resolved by pull request 28937 [https://github.com/apache/spark/pull/28937] > Incorrect results for SUBSTRING when overflow > --------------------------------------------- > > Key: SPARK-32115 > URL: https://issues.apache.org/jira/browse/SPARK-32115 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.6.3, 2.0.2, 2.1.3, 2.2.3, 2.3.4, 2.4.6, 3.0.0 > Reporter: Yuanjian Li > Assignee: Yuanjian Li > Priority: Blocker > Labels: correctness > Fix For: 3.0.1, 2.4.7, 3.1.0 > > > SQL query SELECT SUBSTRING("abc", -1207959552, -1207959552) incorrectly > returns "abc" against expected output of "". > This is a result of integer overflow in addition > [https://github.com/apache/spark/blob/8c44d744631516a5cdaf63406e69a9dd11e5b878/common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java#L345] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org