-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(spark): implement Spark make_dt_interval
function
#17728
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
base: main
Are you sure you want to change the base?
Conversation
datafusion/sqllogictest/test_files/spark/datetime/make_dt_interval.slt
Outdated
Show resolved
Hide resolved
datafusion/sqllogictest/test_files/spark/datetime/make_dt_interval.slt
Outdated
Show resolved
Hide resolved
} | ||
|
||
fn return_type(&self, _arg_types: &[DataType]) -> Result<DataType> { | ||
Ok(DataType::Duration(Microsecond)) |
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.
This should be an interval instead right?
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.
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.
Can we include a comment here with this explanation for future reference?
Which issue does this PR close?
part of #15914
Rationale for this change
Migrate spark functions from https://github.com/lakehq/sail/ to datafusion engine to unify codebase
What changes are included in this PR?
implement spark udf make_interval
https://spark.apache.org/docs/latest/api/sql/index.html#make_dt_interval
Are these changes tested?
unit-tests and sqllogictests added
Are there any user-facing changes?
now can be called in queries