Skip to content

Conversation

@tlm365
Copy link
Contributor

@tlm365 tlm365 commented Oct 12, 2024

Which issue does this PR close?

Closes #11910.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the functions Changes to functions implementation label Oct 12, 2024
@tlm365 tlm365 force-pushed the regex-like-strview branch from 481a393 to fae6d88 Compare October 12, 2024 16:17
Signed-off-by: Tai Le Manh <manhtai.lmt@gmail.com>
@tlm365 tlm365 force-pushed the regex-like-strview branch from fae6d88 to 899fb7f Compare October 12, 2024 17:00
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Oct 12, 2024
@tlm365 tlm365 marked this pull request as ready for review October 12, 2024 18:31
@findepi
Copy link
Member

findepi commented Oct 12, 2024

cc @alamb

----
logical_plan
01)Projection: regexp_like(CAST(test.column1_utf8view AS Utf8), Utf8("^https?://(?:www\.)?([^/]+)/.*$")) AS k
01)Projection: regexp_like(test.column1_utf8view, Utf8("^https?://(?:www\.)?([^/]+)/.*$")) AS k
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@Omega359
Copy link
Contributor

LGTM as well.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @tlm365 and @findepi and @Omega359 for the reviews

TypeSignature::Exact(vec![LargeUtf8, Utf8]),
TypeSignature::Exact(vec![LargeUtf8, Utf8View]),
TypeSignature::Exact(vec![LargeUtf8, LargeUtf8]),
TypeSignature::Exact(vec![Utf8View, Utf8, Utf8]),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think requiring the flags array to be StringArrray (aka only supporting Utf8 as the third argument) makes lots of sense

@alamb alamb merged commit 8d46fc1 into apache:main Oct 16, 2024
@tlm365 tlm365 deleted the regex-like-strview branch November 10, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update REGEXP_LIKE scalar function to support Utf8View

4 participants