-
Notifications
You must be signed in to change notification settings - Fork 28k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-30904][SQL] Thrift RowBasedSet serialization throws NullPointerException on NULL BigDecimal #27654
Conversation
ok to test |
Test build #118742 has finished for PR 27654 at commit
|
Test build #118781 has finished for PR 27654 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. cc @wangyum @gatorsmile
retest this please. |
Test build #118809 has finished for PR 27654 at commit
|
…rException on NULL BigDecimal ### What changes were proposed in this pull request? This PR fixes SPARK-30904 by adding a null check. ### Why are the changes needed? For HIVE_CLI_SERVICE_PROTOCOL_V5 and below, serialization fails on NULL-containing decimal columns, caused by a call to `value.toPlainString()`, where `value` might be null. This null check fixes it. ### Does this PR introduce any user-facing change? No ### How was this patch tested? A test was added for serialization of NULL decimals for all HIVE_CLI_SERVICE_PROTOCOL versions. Closes #27654 from CJStuart/SPARK-30904. Authored-by: Christian Stuart <christian.stuart@databricks.com> Signed-off-by: Yuming Wang <wgyumg@gmail.com> (cherry picked from commit bcce1b1) Signed-off-by: Yuming Wang <wgyumg@gmail.com>
Merged to master and branch-3.0. |
…rException on NULL BigDecimal ### What changes were proposed in this pull request? This PR fixes SPARK-30904 by adding a null check. ### Why are the changes needed? For HIVE_CLI_SERVICE_PROTOCOL_V5 and below, serialization fails on NULL-containing decimal columns, caused by a call to `value.toPlainString()`, where `value` might be null. This null check fixes it. ### Does this PR introduce any user-facing change? No ### How was this patch tested? A test was added for serialization of NULL decimals for all HIVE_CLI_SERVICE_PROTOCOL versions. Closes apache#27654 from CJStuart/SPARK-30904. Authored-by: Christian Stuart <christian.stuart@databricks.com> Signed-off-by: Yuming Wang <wgyumg@gmail.com>
What changes were proposed in this pull request?
This PR fixes SPARK-30904 by adding a null check.
Why are the changes needed?
For HIVE_CLI_SERVICE_PROTOCOL_V5 and below, serialization fails on NULL-containing decimal columns, caused by a call to
value.toPlainString()
, wherevalue
might be null. This null check fixes it.Does this PR introduce any user-facing change?
No
How was this patch tested?
A test was added for serialization of NULL decimals for all HIVE_CLI_SERVICE_PROTOCOL versions.