spark-instrumented-optimizer/common/unsafe/src
ulysses-you e70b0f81b3 [SPARK-35041][SQL] Revise the overflow in UTF8String
### What changes were proposed in this pull request?

Add overflow check before do `new byte[]`.

### Why are the changes needed?

Avoid overflow in extreme case.

### Does this PR introduce _any_ user-facing change?

Maybe yes, the error msg changed if overflow.

### How was this patch tested?

Pass CI.

Closes #32142 from ulysses-you/SPARK-35041.

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
2021-04-13 14:34:28 +03:00
..
main/java/org/apache/spark [SPARK-35041][SQL] Revise the overflow in UTF8String 2021-04-13 14:34:28 +03:00
test [SPARK-34094][SQL] Extends StringTranslate to support unicode characters whose code point >= U+10000 2021-01-21 08:15:55 -06:00