-
Notifications
You must be signed in to change notification settings - Fork 53
feat: add unix_seconds, unix_millis and unix_micros for timestamp series. #1297
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
Conversation
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.
Left a comment
@@ -722,6 +722,21 @@ def strftime_op_impl(x: ibis_types.Value, op: ops.StrftimeOp): | |||
) | |||
|
|||
|
|||
@scalar_op_compiler.register_unary_op(ops.UnixSeconds) |
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.
Should we support these via sql_scalar
added in #1293?
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.
Sql_scalar is cool, though I think well-defined operations such as epoch conversions should have their own op nodes because their behaviors are well-defined, and there's no need for dry runs to validate the syntax and return type. Plus, it might benefit from future tree optimizations.
No description provided.