8000 Autoloading ICU not working around timezone casts · Issue #1770 · duckdb/duckdb-wasm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Autoloading ICU not working around timezone casts #1770

New issue

Have a question about 8000 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

Closed
carlopi opened this issue Jun 18, 2024 · 1 comment
Closed

Autoloading ICU not working around timezone casts #1770

carlopi opened this issue Jun 18, 2024 · 1 comment

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

@carlopi
Copy link
Collaborator Author
carlopi commented May 8, 2025

This now works correctly.

@carlopi carlopi closed this as completed May 8, 2025
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
0