You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by "Sigma-Ma (via GitHub)" <gi...@apache.org> on 2026/08/29 07:57:13 UTC
[PR] [AURON #2485] Support last_day function natively [auron]
Sigma-Ma opened a new pull request, #2486:
URL: https://github.com/apache/auron/pull/2486
# Which issue does this PR close?
Closes #2485
# Rationale for this change
Spark `last_day` expressions cannot currently be converted to native expressions, causing affected plans to fall back to Spark execution.
# What changes are included in this PR?
- Convert Spark `LastDay` expressions to the `Spark_LastDay` extension function.
- Implement `Spark_LastDay` using the existing Date32 conversion and month-length helpers.
- Add Rust unit tests and Spark regression coverage for regular months, leap years, dates before the Unix epoch, and null values.
# Are there any user-facing changes?
No. The Spark SQL syntax and result semantics remain unchanged. Eligible `last_day` expressions can now run natively.
# How was this patch tested?
```bash
cargo test -p datafusion-ext-functions \
spark_dates::tests::test_spark_last_day -- --exact
./dev/reformat --check
./auron-build.sh \
--pre \
--clean true \
--sparkver 3.5 \
--scalaver 2.12 \
--skiptests false \
-DwildcardSuites=org.apache.auron.AuronFunctionSuite
```
# Was this patch authored or co-authored using generative AI tooling?
- [x] Yes
- [ ] No
Generated-by: OpenAI Codex (GPT-5)
ASF guidance: https://www.apache.org/legal/generative-tooling.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@auron.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [AURON #2485] Support last_day function natively [auron]
Posted by "slfan1989 (via GitHub)" <gi...@apache.org>.
slfan1989 commented on PR #2486:
URL: https://github.com/apache/auron/pull/2486#issuecomment-5467249759
@Sigma-Ma Thanks for the contribution! Merged into master.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@auron.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [AURON #2485] Support last_day function natively [auron]
Posted by "slfan1989 (via GitHub)" <gi...@apache.org>.
slfan1989 merged PR #2486:
URL: https://github.com/apache/auron/pull/2486
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@auron.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org