-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40836][CONNECT] AnalyzeResult should use struct for schema #38301
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
7cb9507 to
9c7617b
Compare
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.
nit: for readability, move this to the other int type?
|
Can one of the admins verify this patch? |
9c7617b to
4d3a83f
Compare
|
R: @cloud-fan |
4d3a83f to
c6bd24e
Compare
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.
we also need to set nullablity.
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 let me fix the nullability in this PR then. Maybe it is a right time now.
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.
Entire nullability is ignored so far in current Connect implementation.
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.
Done. I set nullablity now.
6faa578 to
bfcd053
Compare
|
thanks, merging to master! |
### What changes were proposed in this pull request? This PR replace column names and columns type with a schema (which is a struct). ### Why are the changes needed? Before this PR, AnalyzeResult separates column names and column types. However these two can be combined to form a schema which is a struct. This PR will simplify that proto message. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? UT Closes apache#38301 from amaliujia/return_schema_use_struct. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
This PR replace column names and columns type with a schema (which is a struct).
Why are the changes needed?
Before this PR, AnalyzeResult separates column names and column types. However these two can be combined to form a schema which is a struct. This PR will simplify that proto message.
Does this PR introduce any user-facing change?
No
How was this patch tested?
UT