-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(spark): implement Spark datetime function last_day #16828
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
Hi @alamb, I’ve added the
|
I think the issue is that the function is named fn name(&self) -> &str {
"spark_last_day"
} |
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.
Thanks, looks good!
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Signed-off-by: Alan Tang <jmtangcs@gmail.com>
* feat(spark): implement Spark datetime function last_day Signed-off-by: Alan Tang <jmtangcs@gmail.com> * chore: fix the export function name Signed-off-by: Alan Tang <jmtangcs@gmail.com> * chore: Fix Cargo.toml formatting Signed-off-by: Alan Tang <jmtangcs@gmail.com> * test: add more tests for spark function last_day Signed-off-by: Alan Tang <jmtangcs@gmail.com> * feat(spark): set the signature to be taking exactly one Date32 type Signed-off-by: Alan Tang <jmtangcs@gmail.com> * test(spark): add more bad cases Signed-off-by: Alan Tang <jmtangcs@gmail.com> * chore: clean up redundant package Signed-off-by: Alan Tang <jmtangcs@gmail.com> --------- Signed-off-by: Alan Tang <jmtangcs@gmail.com>
Which issue does this PR close?
datetime
functionlast_day
#16774.datafusion-spark
Spark Compatible Functions #15914.Rationale for this change
What changes are included in this PR?
Implement Spark datetime function last_day
Are these changes tested?
I added tests for
last_day
function.Are there any user-facing changes?
yes, new function.