You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/03/30 19:00:46 UTC

[GitHub] [arrow-datafusion] alamb opened a new issue, #5802: `interval ..` syntax does not work in SQL `VALUES` clause

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

   ### Describe the bug
   
   I can not use `interval ..` syntax in SQL `VALUES` clauses
   
   
   ### To Reproduce
   
   ```sql
   create table t (i interval) as values (interval '5 days 3 nanoseconds');
   ```
   
   Results in 
   ```DataFusion error: This feature is not implemented: Unsupported value Interval \{ value: Value\(SingleQuotedString\("5 days 3 nanoseconds"\)\), leading_field: None, leading_precision: None, last_field: None, fractional_seconds_precision: None \} in a values list expression
   ```
   
   
   
   ### Expected behavior
   
   I expect it to work like 
   ```sql
   ❯ create table t (i interval) as values ('5 days 3 nanoseconds'::interval);
   0 rows in set. Query took 0.002 seconds.
   
   ❯ show columns in t;
   +---------------+--------------+------------+-------------+------------------------+-------------+
   | table_catalog | table_schema | table_name | column_name | data_type              | is_nullable |
   +---------------+--------------+------------+-------------+------------------------+-------------+
   | datafusion    | public       | t          | i           | Interval(MonthDayNano) | YES         |
   +---------------+--------------+------------+-------------+------------------------+-------------+
   
   ### 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: github-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion] alamb closed issue #5802: `interval ..` syntax does not work in SQL `VALUES` clause

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5802: `interval ..` syntax does not work in SQL `VALUES` clause
URL: https://github.com/apache/arrow-datafusion/issues/5802


-- 
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-unsubscribe@arrow.apache.org

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