Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
2.3.0, 2.3.1
-
None
-
None
Description
date_trunc(a_timestamp, 'minute') returns null
date_trunc('minute', a_timestamp) returns a valid timestamp
it would be nice to have a runtime error to help catch the problem
This was not helped by the fact that the doc examples had it swapped, but yes I should have tested our use of it more thoroughly
Attachments
Issue Links
- duplicates
-
SPARK-24378 Incorrect examples for date_trunc function in spark 2.3.0
- Resolved