-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-32826][SQL] Set the right column size for the null type in SparkGetColumnsOperation #29687
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
Conversation
|
cc @cloud-fan @maropu @dongjoon-hyun, and thanks very much~ |
|
Test build #128433 has finished for PR 29687 at commit
|
| private def getColumnSize(typ: DataType): Option[Int] = typ match { | ||
| case dt @ (BooleanType | _: NumericType | DateType | TimestampType | CalendarIntervalType) => | ||
| case dt @ (BooleanType | _: NumericType | DateType | TimestampType | | ||
| CalendarIntervalType | NullType) => |
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.
so it's not a test only PR. Can we remove [TEST] from PR title?
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.
OK~
|
please also update the PR description to mention the non-test change. |
|
updated, thanks for suggestions |
|
thanks, merging to master! |
What changes were proposed in this pull request?
In Spark 3.0.0, the SparkGetColumnsOperation can not recognize NULL columns but now we can because the side effect of https://issues.apache.org/jira/browse/SPARK-32696 / f14f374, but the test coverage for this change was not added.
In Spark, the column size for null fields should be 1, in this PR, we set the right column size for the null type.
Why are the changes needed?
test coverage and fix the client-side information about the null type through jdbc
Does this PR introduce any user-facing change?
NO
How was this patch tested?
added ut both for this pr and SPARK-32696