Skip to content
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: Add support for RLike #469

Closed
wants to merge 17 commits into from
Closed

feat: Add support for RLike #469

wants to merge 17 commits into from

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

N/A

Rationale for this change

Regular expression support is usually important in ETL jobs, so we should start adding support.

What changes are included in this PR?

Add support for RLike.

How are these changes tested?

New test.

Comment on lines -1097 to -1105
// TODO waiting for arrow-rs update
// case RLike(left, right) =>
Copy link
Member

Choose a reason for hiding this comment

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

I forgot the details. I remember this was added by someone at the early development. Not sure if we have anything update in arrow-rs for it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did look at arrow-rs and there is support there but it seems to have more logic than we need (including some postgres compatibility).

Copy link
Contributor

Choose a reason for hiding this comment

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

@andygrove
Copy link
Member Author

Could I get more feedback on this PR @parthchandra @kazuyukitanimura @huaxingao

} else {
// this should be unreachable because Spark will evaluate regex expressions against
// literal strings as part of query planning
Err(CometError::Internal("Only columnar inputs are supported".to_string()).into())
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to encounter dictionary type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Yes, it probably is.

@andygrove andygrove marked this pull request as draft June 7, 2024 22:38
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.

3 participants