Skip to content

refactor array_agg to not to have update and merge - #1681

Merged
jimexist merged 1 commit into
apache:masterfrom
jimexist:refactor-array-agg
Jan 27, 2022
Merged

refactor array_agg to not to have update and merge#1681
jimexist merged 1 commit into
apache:masterfrom
jimexist:refactor-array-agg

Conversation

@jimexist

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@jimexist

Copy link
Copy Markdown
MemberAuthor

related #1598

@jimexist
jimexist requested a review from alambJanuary 26, 2022 15:12

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a nice cleanup to me 👍

FYI @viirya (who implemented this originally in #1300 I think)

.map(|array| ScalarValue::try_from_array(array, index))
.collect::<Result<Vec<_>>>()?;
self.update(&v)
assert!(values.len() == 1, "array_agg can only take 1 param!");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the new assert 👍

@jimexist
jimexist merged commit bf71577 into apache:masterJan 27, 2022
@jimexist
jimexist deleted the refactor-array-agg branch January 27, 2022 01:53
@houqphouqp added the api change Changes the API exposed to users of the crate label Jan 27, 2022
@alambalamb removed the api change Changes the API exposed to users of the crate label Feb 10, 2022
@alamb

Copy link
Copy Markdown
Contributor

I think the API change was in another PR #1582

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@jimexist@alamb@houqp