-
Notifications
You must be signed in to change notification settings - Fork 164
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
feat: Implement CAST from struct to string #1066
Conversation
// https://github.com/apache/datafusion-comet/issues/1067 is resolved | ||
// checkSparkAnswerAndOperator( | ||
// "SELECT CAST(struct(_9, _10, _11, _12) as string) FROM tbl") | ||
// decimals (_16 intentionally excluded due to formatting difference with scientific notation) |
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.
Let's file an issue for _16
? Not sure if it is related to struct or independent decimal issue.;
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.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1066 +/- ##
=============================================
+ Coverage 34.46% 54.82% +20.35%
+ Complexity 888 858 -30
=============================================
Files 113 110 -3
Lines 43580 10760 -32820
Branches 9658 2089 -7569
=============================================
- Hits 15021 5899 -9122
+ Misses 25507 3807 -21700
+ Partials 3052 1054 -1998 ☔ View full report in Codecov by Sentry. |
Which issue does this PR close?
Closes #814
Rationale for this change
As we add support for complex types, we will need to support CASTing them to string, so that users can run
df.show()
for example.What changes are included in this PR?
Implement CAST from struct to string
How are these changes tested?