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

fix: Fixes datetime functions support #34

Merged
merged 4 commits into from
Aug 10, 2024
Merged

Conversation

evanxg852000
Copy link
Contributor

Ticket(s) Closed

What

As reported in the issue, date functions like date_trunc, date_part are not working

Why

The DataType::Date32 and DataType::Date64 were not handled for TIMESTAMPTZOID.

How

Handled the case with appropriate conversions

Tests

Added a test

@evanxg852000 evanxg852000 changed the title fix: Fixes datetime function support fix: Fixes datetime functions support Aug 7, 2024
@evanxg852000 evanxg852000 force-pushed the fix/arrow-date-support branch from 81d9119 to 1d0fc36 Compare August 7, 2024 13:36
@evanxg852000 evanxg852000 marked this pull request as ready for review August 7, 2024 14:36
Copy link
Collaborator

@philippemnoel philippemnoel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evanxg852000 could you please fix the lint? There's also some other open PR: paradedb/paradedb#1478

If we use yours, do we not need this one?

@evanxg852000
Copy link
Contributor Author

Fixing the lint is not a big deal, but I am doing more testing on this.

Cargo.toml Outdated Show resolved Hide resolved
src/schema/datetime.rs Outdated Show resolved Hide resolved
src/schema/cell.rs Outdated Show resolved Hide resolved
@evanxg852000 evanxg852000 force-pushed the fix/arrow-date-support branch from 3707a5c to cbf395d Compare August 8, 2024 16:42
@philippemnoel philippemnoel merged commit 4ffcbdc into dev Aug 10, 2024
4 checks passed
@philippemnoel philippemnoel deleted the fix/arrow-date-support branch August 10, 2024 17:56
philippemnoel added a commit that referenced this pull request Aug 12, 2024
philippemnoel added a commit that referenced this pull request Aug 12, 2024
@philippemnoel philippemnoel restored the fix/arrow-date-support branch August 12, 2024 18:05
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

Successfully merging this pull request may close these issues.

DATE_TRUNC('day', date_day) not supported
4 participants