spark-instrumented-optimizer/common
Yuanjian Li 6484c14c57 [SPARK-32115][SQL] Fix SUBSTRING to handle integer overflows
### What changes were proposed in this pull request?
Bug fix for overflow case in `UTF8String.substringSQL`.

### Why are the changes needed?
SQL query `SELECT SUBSTRING("abc", -1207959552, -1207959552)` incorrectly returns` "abc"` against expected output of `""`. For query `SUBSTRING("abc", -100, -100)`, we'll get the right output of `""`.

### Does this PR introduce _any_ user-facing change?
Yes, bug fix for the overflow case.

### How was this patch tested?
New UT.

Closes #28937 from xuanyuanking/SPARK-32115.

Authored-by: Yuanjian Li <xyliyuanjian@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
2020-06-28 12:22:44 -07:00
..
kvstore [SPARK-31929][WEBUI] Close leveldbiterator when leveldb.close 2020-06-16 12:59:57 -05:00
network-common Apply appropriate RPC handler to receive, receiveStream when auth enabled 2020-04-17 13:25:12 -05:00
network-shuffle [SPARK-31646][SHUFFLE] Remove unused registeredConnections counter from ShuffleMetrics 2020-05-07 15:22:13 -07:00
network-yarn [SPARK-31611][YARN] Register NettyMemoryMetrics into Node Manager's metrics system 2020-05-08 15:50:19 -07:00
sketch [SPARK-30950][BUILD] Setting version to 3.1.0-SNAPSHOT 2020-02-25 19:44:31 -08:00
tags [SPARK-31756][WEBUI] Add real headless browser support for UI test 2020-05-29 10:41:29 -07:00
unsafe [SPARK-32115][SQL] Fix SUBSTRING to handle integer overflows 2020-06-28 12:22:44 -07:00