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

feat: introduce interval_year and interval_day types #48

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dshaaban01
Copy link
Contributor

@dshaaban01 dshaaban01 commented Jan 1, 2025

Introduce both interval types and respective attribute types: interval_year and interval_day

Note this is a stacked PR:

interval_year in this commit (cddce09)

interval_day in second commit (d6ac63f)

Implements both interval type and attribute types. Tests again added for types but not for attribute types - waiting on https://github.com/substrait-io/substrait-mlir-contrib/pull/39to be merged and then will add those tests to project.mlir test file (similarly to integer, float, string, binary, date etc. types)!

@dshaaban01 dshaaban01 force-pushed the dalia/types/intervals branch 3 times, most recently from 83fd62d to d6ac63f Compare January 1, 2025 17:47
%0 = named_table @t1 as ["a", "b"] : tuple<!substrait.interval_year, !substrait.interval_day>
yield %0 : tuple<!substrait.interval_year, !substrait.interval_day>
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: final line break.

@dshaaban01 dshaaban01 force-pushed the dalia/types/intervals branch from dd58ba1 to 296155a Compare January 9, 2025 11:51
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.

2 participants