-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-54670][CONNECT] Rework Connect Literal handling #53430
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
base: master
Are you sure you want to change the base?
Conversation
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.
Difference in Decimal handling:
[89.976200000000000000,89.976210000000000000] AS ARRAY(89.976200000000000000BD, 89.976210000000000000BD)#0, [89889.766723100000000000,89889.766723100000000000] AS ARRAY(89889.766723100000000000BD, 89889.766723100000000000BD)#0
[89.97620,89.97621] AS ARRAY(89.97620BD, 89.97621BD)#0, [89889.7667231,89889.7667231] AS ARRAY(89889.7667231BD, 89889.7667231BD)#0
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.
Difference in Binary handling:
0x0806 AS X'0806'#0,
[8,6] AS ARRAY(8Y, 6Y)#0
| expressions.Literal(value, dataType) | ||
| } | ||
|
|
||
| private object FromProtoToCatalystConverter extends FromProtoConvertor { |
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.
This directly converts the literal to its catalyst representation.
Why are the changes needed?
This PR fixes a number of problems with literal handling in Spark Connect:
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Modified existing tests.
Was this patch authored or co-authored using generative AI tooling?
No.