hozan23 opened a new issue, #26907:
URL: https://github.com/apache/datafusion/issues/26907

   ### Is your feature request related to a problem or challenge?
   
    Is your feature request related to a problem or challenge?
   
     Planning `DATETIME` fails unless a `TypePlanner` handles it:
   
         > select CAST('2026-09-21 08:55:40' AS DATETIME);
         This feature is not implemented: Unsupported SQL type DATETIME
   
    Since #26885, `MySqlDialect` unparses timestamp casts as `DATETIME` / 
`DATETIME(p)`, so DataFusion cannot plan the SQL it produces. 
   
   ### Describe the solution you'd like
   
   Treat `DATETIME` as an alias of `TIMESTAMP` without a time zone, the same 
way `TIMESTAMP` is planned today:
   
     | SQL | Arrow |
     |---|---|
     | `DATETIME` | `Timestamp(Nanosecond, None)` |
     | `DATETIME(0)` | `Timestamp(Second, None)` |
     | `DATETIME(3)` | `Timestamp(Millisecond, None)` |
     | `DATETIME(6)` | `Timestamp(Microsecond, None)` |
     | `DATETIME(9)` | `Timestamp(Nanosecond, None)` |
     | other precisions | error |
   
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Willingness to contribute
   
   I would like to contribute to this feature, but request guidance from the 
DataFusion community


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