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

Multiple DATE_PART extraction #2779

Closed
hawkfish opened this issue Dec 12, 2021 · 0 comments
Closed

Multiple DATE_PART extraction #2779

hawkfish opened this issue Dec 12, 2021 · 0 comments

Comments

@hawkfish
Copy link
Contributor

Date part computations are slow and often have to compute multiple parts, so it would be nice to have another implementation of DATE_PART that takes a (constant) LIST<VARCHAR> of part names as the first argument and returns a STRUCT<part:BIGINT,...> containing all the named parts in the order given.

hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 20, 2021
Implement for TIMESTAMP, DATE, TIME and INTERVAL.
Tweak promotion weights to prefer VARCHAR to LIST.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 20, 2021
Implement for TIMESTAMPTZ.
Some minor code cleanup and templatisation.
Expand test data.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 21, 2021
Handle hostile date part LISTs.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 22, 2021
Filter out unneeded expensive date calls.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 23, 2021
Benchmark ICU structs.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 23, 2021
Reduce writes to improve performance.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 25, 2021
Check for illegal parts and return 0 for time zone offsets.
hawkfish pushed a commit to hawkfish/duckdb that referenced this issue Dec 28, 2021
Improve coverage and fix a few small bugs.
Mytherin added a commit that referenced this issue Dec 29, 2021
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