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

Add NORMALIZE to SQL String Functions while adding expanded Unicode Normalization support #20692

Closed
jqnatividad opened this issue Jan 13, 2025 · 1 comment · Fixed by #20705
Closed
Assignees
Labels
A-sql Area: Polars SQL functionality enhancement New feature or an improvement of an existing feature

Comments

@jqnatividad
Copy link
Contributor

jqnatividad commented Jan 13, 2025

Description

Now that Polars has str.normalize with #20483.

Also, possibly add support for

text IS [NOT] [form] NORMALIZED → boolean (see PostgreSQL String Functions)

in SQL and str Polars library as the unicode-normalization crate has the required is_ functions.

https://docs.rs/unicode-normalization/latest/unicode_normalization/index.html#functions

@jqnatividad jqnatividad added the enhancement New feature or an improvement of an existing feature label Jan 13, 2025
@alexander-beedie alexander-beedie added the A-sql Area: Polars SQL functionality label Jan 14, 2025
@alexander-beedie alexander-beedie self-assigned this Jan 14, 2025
@alexander-beedie
Copy link
Collaborator

alexander-beedie commented Jan 14, 2025

Sounds like a plan; about to commit NORMALIZE(...) SQL support.

Can you split out the request for text IS [NOT] [form] NORMALIZED → boolean as a separate Issue? I took a quick look and it seems it will require an update to the upstream sqlparser-rs lib (which I can likely do, but we'll have to wait for the subsequent release of that lib to add support here). Easier to manage as separate Issues so I can close this one and keep the other on my radar👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql Area: Polars SQL functionality enhancement New feature or an improvement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants