-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor: Add macro to refactor array functions registration #12577
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for meta-velox canceled.
|
f5aea4f
to
f6d0410
Compare
Can you help review this PR? Thanks! @rui-mo @zhli1142015 |
registerArrayRemoveFunctions<Varbinary>(prefix); | ||
registerArrayRemoveFunctions<Generic<T1>>(prefix); | ||
REGISTER_SCALAR_FUNCTIONS_WITHOUT_VARCHAR( | ||
registerArrayRemoveFunctions, prefix); | ||
registerFunction< | ||
ArrayRemoveFunctionString, |
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.
Do you know the reason why we need to implement a separate function specifically for the VARCHAR type?
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.
The StringWriter push_back API uses copy_from
which is a deep copy, usually in the simple function case, it should be a reference copy.
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.
So we use setNoCopy instead of push_back for VARCHAR
No description provided.