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

support for ICU collation #1196

Closed
eroux opened this issue Mar 18, 2023 · 4 comments
Closed

support for ICU collation #1196

eroux opened this issue Mar 18, 2023 · 4 comments

Comments

@eroux
Copy link

eroux commented Mar 18, 2023

Hello,

I'm very interested in trying duckdb-wasm, but one potentially blocking issue is the support for ICU collation since I'm working primarily with Tibetan, for which a simple collation doesn't make much sense. I couldn't find if ICU collation was available or not though, is it?

I'm quite new to wasm so I don't know if it's usable or not, but the JS API Intl.Collator('bo'); works well for Tibetan

Thanks!

@carlopi
Copy link
Collaborator

carlopi commented Mar 18, 2023

DuckDB documentation seems to suggest ICU collation are available via the ICU extension, but ICU integration (and in general for dynamic extension loading) support has yet to land, but it's close.

I would probably suggest to get started run some experiment on DuckDB command line interface, if the syntax you need is supported there (after INSTALL icu; LOAD icu; steps), then support in duckdb-wasm will follow shortly.

Another suggestion would be joining https://discord.duckdb.org, where I am sure you can met with others that experimented in this direction.

@carlopi
Copy link
Collaborator

carlopi commented Mar 23, 2023

Hi @eroux, we have put up a very experimental deployment at https://shellwip.duckdb.org/ that include loading of extensions.

LOAD icu;

works, and functions appears to be exported, I don't see any particular blocker for this to work, but also has not been tested in any extensive way, so hard to say.

It would be cool if you can give it a go and if you have any feedback.

Here (https://github.com/duckdb/duckdb-wasm-wip#readme) there are some explanations, current phase is understanding whether this path for extension loading is viable and works on fixing outstanding issues.

@eroux
Copy link
Author

eroux commented Mar 23, 2023

this is wonderful, thanks a lot!! I still haven't decided if I'll use duckdb yet, but that's very clearly a strong argument in favor of it. I'll keep the issue updated if I end up testing it on our database

@carlopi
Copy link
Collaborator

carlopi commented Mar 23, 2023

Great!

I will be closing this, centralising discussion about extension loading here: #1202.

But please do re-open if you have more to add.

@carlopi carlopi closed this as completed Mar 23, 2023
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

No branches or pull requests

2 participants