Jefffrey commented on issue #10826:
URL: https://github.com/apache/datafusion/issues/10826#issuecomment-3314880318

   This is now supported:
   
   ```sql
   DataFusion CLI v50.0.0
   > SELECT extract(epoch FROM now());
   +--------------------------------+
   | date_part(Utf8("EPOCH"),now()) |
   +--------------------------------+
   | 1758363543.037966              |
   +--------------------------------+
   1 row(s) fetched.
   Elapsed 0.056 seconds.
   
   > SELECT extract('epoch' FROM now());
   +----------------------------------+
   | date_part(Utf8("'epoch'"),now()) |
   +----------------------------------+
   | 1758363544.983664                |
   +----------------------------------+
   1 row(s) fetched.
   Elapsed 0.006 seconds.
   
   > SELECT extract("epoch" FROM now());
   +----------------------------------+
   | date_part(Utf8(""epoch""),now()) |
   +----------------------------------+
   | 1758363546.506562                |
   +----------------------------------+
   1 row(s) fetched.
   Elapsed 0.007 seconds.
   ```
   
   And we have tests covering this:
   
   
https://github.com/apache/datafusion/blob/14656f575632c39efca55c7339edaf9998ccd7d9/datafusion/sqllogictest/test_files/expr/date_part.slt#L205-L229


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to