forked from apache/datafusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: date_add and date_sub functions (apache#910)
* date_add test case. * Add DateAdd to proto and QueryPlanSerde. Next up is the native side. * Add DateAdd in planner.rs that generates a Literal for right child. Need to confirm if any other type of expression can occur here. * Minor refactor. * Change test predicate to actually select some rows. * Switch to scalar UDF implementation for date_add. * Docs and minor refactor. * Add a new test to explicitly cover array scenario. * cargo clippy fixes * Fix Scala 2.13. * New approved plans for q72 due to date_add. * Address first round of feedback. * Add date_sub and tests. * Fix error message to be more general. * Update error message for Spark 4.0+ * Support Int8 and Int16 for days.
- Loading branch information
1 parent
c7ed2eb
commit c7ec300
Showing
1 changed file
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters