appletreeisyellow opened a new issue, #6181:
URL: https://github.com/apache/arrow-datafusion/issues/6181

   ### Is your feature request related to a problem or challenge?
   
   DataFusion is not able to parse the following SQL:
   ```
   SELECT SUM("air_temperature"."sea_level_degrees") AS 
"sum:sea_level_degrees:ok",
     DATE_TRUNC( 'YEAR', CAST("air_temperature"."time" AS TIMESTAMP) ) AS 
"tyr:time:ok"
   FROM "iox"."air_temperature" "air_temperature"
   GROUP BY 2
   ```
   
   The error message I got is:
   ```
   Unsupported date_trunc granularity: YEAR
   ```
   
   ### Describe the solution you'd like
   
   Support YEAR in DATE_TRUNC
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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

Reply via email to