andygrove commented on issue #26336:
URL: https://github.com/apache/datafusion/issues/26336#issuecomment-6698730959

   Running `date_part.slt` on Spark 4.2.0 with the runner in #27165 found two 
more differences:
   
   - `QUARTERS` and `DAYOFYEAR` are accepted, but Spark raises 
`INVALID_EXTRACT_FIELD` for both. Spark accepts `QUARTER`, `QTR` and `DOY` 
([datetimeExpressions.scala#L3361-L3373](https://github.com/apache/spark/blob/v4.2.0/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala#L3361-L3373)).
 The list of field names is the same in every Spark version from 3.4 to 4.2, so 
this does not depend on the version.
   - `date_part(NULL::string, '2000-01-01'::date)` is an error, while Spark 
4.2.0 returns NULL.
   


-- 
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]

Reply via email to