Skip to content

feat: adding add_months datetime expression#4427

Open
athlcode wants to merge 1 commit into
apache:mainfrom
athlcode:add_months
Open

feat: adding add_months datetime expression#4427
athlcode wants to merge 1 commit into
apache:mainfrom
athlcode:add_months

Conversation

@athlcode
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #4150

Rationale for this change

add_months already has a native implementation in the datafusion-spark crate, but wasn't wired into Comet, so queries using it fell back to Spark.

What changes are included in this PR?

Wires Spark's AddMonths to the datafusion-spark SparkAddMonths UDF using the wire-datafusion-function skill. Also updates the supported-expression docs.

How are these changes tested?

Added a SQL file test (datetime/add_months.sql).

@athlcode
Copy link
Copy Markdown
Contributor Author

Hey @coderfender, @comphead. Created this for add_months spark expression, please review, thank you

@coderfender
Copy link
Copy Markdown
Contributor

Thank you @athlcode , I triggered CI but there seems to be some test failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants