-
Notifications
You must be signed in to change notification settings - Fork 2
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 date
type
#46
feat: introduce date
type
#46
Conversation
86688a3
to
4f24fa3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo minor nit.
test/Dialect/Substrait/types.mlir
Outdated
%0 = named_table @t1 as ["a"] : tuple<!substrait.date> | ||
yield %0 : tuple<!substrait.date> | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: final line break.
Consider configuring VS Code to add those line breaks automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha thank you! This indeed is the smarter approach.
71c644a
to
63167ef
Compare
6cca2f1
to
122a2be
Compare
884b94a
to
19b93c2
Compare
d87e64d
to
267e9a9
Compare
} | ||
} | ||
|
||
// ----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ingomueller-net I think that I accidentally duplicated the test for timestamp, timestamp_tz and that it snuck in here during the rebase :((
In the time PR, I basically delete the duplicated timestamp test. So thats why it looks like I'm replacing tests - it's because I deleted one. I didn't realize that it had snuck into this PR, I'm so sorry!
This PR introduces the
date
atomic type and its associated attribute types. Thedate
type represents a calendar date within the range [1000-01-01..9999-12-31]. Internally, it is stored as anint32
value representing the number of days since the epoch date (1970-01-01).