alamb commented on issue #27212:
URL: https://github.com/apache/datafusion/issues/27212#issuecomment-6798161188

   I confirmed the same thing answer from duckdb:
   
   ```sql
   Last login: Tue Nov 10 08:49:04 on ttys058
   andrewlamb@Andrews-MacBook-Pro-3 ~ % duckdb
   DuckDB v2.0.0 (Cyanoptera)
   Enter ".help" for usage hints.
   memory D SELECT s AS input, extract(epoch FROM i) AS epoch_seconds
            FROM (VALUES
              ('11 months', INTERVAL '11 months'),
              ('1 year', INTERVAL '1 year'),
              ('14 months', INTERVAL '14 months'),
              ('-14 months', INTERVAL '-14 months'),
              ('1 year 1 day', INTERVAL '1 year 1 day')
            ) AS t(s, i);
   ┌──────────────┬───────────────┐
   │    input     │ epoch_seconds │
   │   varchar    │    double     │
   ├──────────────┼───────────────┤
   │ 11 months    │    28512000.0 │
   │ 1 year       │    31557600.0 │
   │ 14 months    │    36741600.0 │
   │ -14 months   │   -36741600.0 │
   │ 1 year 1 day │    31644000.0 │
   └──────────────┴───────────────┘
   memory D
   ```


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