umrndem opened a new pull request, #429: URL: https://github.com/apache/datafusion-spark/pull/429
## Which issue does this PR close? Related to #375. ## What changes are included in this PR? Add Spark’s `INVALID_EXTRACT_FIELD` error class and include the available source expression, literal or column name in the error. Invalid literal fields are checked while the source metadata is still available. Date and timestamp literals use SQL-style formatting. Casts and compound expressions may still use DataFusion’s notation; direct physical calls do not receive the original SQL. ## Are these changes tested? Added cases for date, timestamp, column and NULL sources, plus direct physical invocation. The file passes in both simplify and evaluate modes. All 604 Rust tests and 259 SQL test files passed. Formatting and strict Clippy passed. The changed error cases also pass against Spark 4.2.0. ## Are there any user-facing changes? Invalid `date_part` fields now include Spark’s error class and source context. -- 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]
