Subodh-17 opened a new pull request, #118: URL: https://github.com/apache/datafusion-spark/pull/118
## Summary Fixes the ANSI-mode behavior of Spark's `next_day` expression for invalid weekday strings. When ANSI mode is enabled, invalid weekday input now raises Spark-compatible `ILLEGAL_DAY_OF_WEEK` with SQLSTATE `22009`. When ANSI mode is disabled, invalid input preserves the NULL fallback. The implementation also preserves NULL propagation and handles scalar and array execution paths. ## Tests - Added focused Rust unit tests for weekday parsing, ANSI behavior, NULL propagation, and scalar/array combinations. - Added SQLLogicTests for valid and invalid weekday inputs, including whitespace-padded strings, empty strings, and case variants. - Verified against Spark 4.0 weekday parsing behavior. ## Validation - `cargo test -p datafusion-spark -- datetime::next_day` - `cargo test -p datafusion-spark-sqllogictest -- next_day` - `cargo fmt --all -- --check` - `cargo clippy -p datafusion-spark --all-targets -- -D warnings` Fixes #113. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
