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

chore(query): introduce TzLUT util #9920

Merged
merged 9 commits into from
Feb 7, 2023
Merged

Conversation

sundy-li
Copy link
Member

@sundy-li sundy-li commented Feb 7, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

Add a util struct TzLUT which provides fast datetime helper functions.

4 times Faster in this query

SELECT extract(minute FROM EventTime) AS m, count(1) from hits group by m order by count(1) desc limit 10;

Closes #issue

@vercel
Copy link

vercel bot commented Feb 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Feb 7, 2023 at 2:24PM (UTC)

@mergify mergify bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Feb 7, 2023
@sundy-li sundy-li requested a review from zhang2014 February 7, 2023 09:00
@sundy-li sundy-li marked this pull request as ready for review February 7, 2023 09:00
@sundy-li sundy-li requested a review from RinChanNOWWW February 7, 2023 09:06
@sundy-li sundy-li merged commit 9618278 into databendlabs:main Feb 7, 2023
@sundy-li sundy-li deleted the feat-LUT branch February 7, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-chore this PR only has small changes that no need to record, like coding styles.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants