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

Autoloading ICU not working around timezone casts #1770

Open
carlopi opened this issue Jun 18, 2024 · 0 comments
Open

Autoloading ICU not working around timezone casts #1770

carlopi opened this issue Jun 18, 2024 · 0 comments

Comments

@carlopi
Copy link
Collaborator

carlopi commented Jun 18, 2024

What happens?

ICU is not properly autoloaded while handling time zones.

This is a duckdb issue, but particularly visible in DuckDB-Wasm due to the fact that ICU is usally built-in.
Opened here for tracking, has been reported #1274 (comment) or #1274 (comment) independently.

Workaround user side is for now is an explicit LOAD icu; to have this to properly work.

To Reproduce

select cast(to_timestamp(100000) at time zone 'PST' as date) as event_date;
--- Error!
LOAD icu;
select cast(to_timestamp(100000) at time zone 'PST' as date) as event_date;
--- Works!

See https://shell.duckdb.org/#queries=v0,select-cast(to_timestamp(100000)-at-time-zone-'PST'-as-date)-as-event_date~,LOAD-icu~,select-cast(to_timestamp(100000)-at-time-zone-'PST'-as-date)-as-event_date

Browser/Environment:

any

Device:

any

DuckDB-Wasm Version:

1.28.1-dev231.0

DuckDB-Wasm Deployment:

shell.duckdb.org

Full Name:

Carlo Piovesan

Affiliation:

DuckDB Labs

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

1 participant