Skip to content

Add vectorized version of unblend()#6773

Open
mattnibs wants to merge 1 commit intomainfrom
vam-unblend
Open

Add vectorized version of unblend()#6773
mattnibs wants to merge 1 commit intomainfrom
vam-unblend

Conversation

@mattnibs
Copy link
Copy Markdown
Collaborator

No description provided.

@mattnibs mattnibs requested review from a team and philrz and removed request for philrz March 26, 2026 22:07
vector/array.go Outdated
if !ok {
return val
}
switch val := val.(type) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test coverage or it doesn't work.

Suggested change
switch val := val.(type) {
switch val := vew.(type) {

Comment on lines +152 to +154
f = &anonFunc{sctx, func(sctx *super.Context, vecs ...vector.Any) vector.Any {
return expr.Unblend(sctx, vecs[0])
}}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume you did this because you plan to use expr.Unblend elsewhere but do we need a new pattern like this? Could you instead following the usual pattern of packaging it as an expr.Function, and then invoke its Call method?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes I'm going to use it with the vectorized json reader.

Sign up for free to 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.

2 participants