-
Notifications
You must be signed in to change notification settings - Fork 752
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
feature: support REGEXP_INSTR function #4629
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/databend/databend/HgaUerMJ4bSr6opFWYGPqQwXtF51 |
Thanks for the contribution! Please review the labels and make any necessary changes. |
|
||
let iter = izip!(source, pos, occur, ro); | ||
for (s_value, pos_value, occur_value, ro_value) in iter { | ||
if ro_value != 0 && ro_value != 1 { |
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.
Since it's constant column, so we don't need to check this inside the loop?
Just use let v = column.as_u64()?
to check the value.
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.
Oh my bad, ignore this.
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Changelog
Related Issues
Fixes #3069
Test Plan
Unit Tests
Stateless Tests