-
Notifications
You must be signed in to change notification settings - Fork 163
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: support array_insert #1073
base: main
Are you sure you want to change the base?
Conversation
As I was able to realize, |
@andygrove Sorry for tagging but I have questions about the ticket (
Thanks in advance! That is my first serious attempt to contribute to the project, so sorry If I'm annoying. |
+ fix tests for spark < 3.4
- added test for the negative index - added test for the legacy spark mode
Thanks, @SemyonSinchenko. I think it's fine to skip the test for Spark 3.3. I plan on reviewing this PR in more detail tomorrow, but it looks good from an initial read. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1073 +/- ##
============================================
- Coverage 34.46% 34.27% -0.20%
Complexity 888 888
============================================
Files 113 113
Lines 43580 43355 -225
Branches 9658 9488 -170
============================================
- Hits 15021 14860 -161
- Misses 25507 25596 +89
+ Partials 3052 2899 -153 ☔ View full report in Codecov by Sentry. |
Which issue does this PR close?
Related to #1042
array_insert: SELECT array_insert(array(1, 2, 3, 4), 5, 5)
Rationale for this change
As described in #1042
What changes are included in this PR?
QueryPlanSerde.scala
: I added an additional case for the array insert;expr.proto
: I added a new message for theArrayInsert
;planner.rs
: I added a case for the array_insert;list.rs
:ArrayInsert
struct;PhysicalExpr
,Display
andPartialExpr
for it;fn array_insert
How are these changes tested?
At the moment I added a simple tests for
fn array_insert
and a test forQueryPlanSerde
.