You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/16 11:11:40 UTC
[GitHub] [arrow-datafusion] Jefffrey commented on issue #193: [Datafusion] Error with CAST: Unsupported SQL type Time
Jefffrey commented on issue #193:
URL: https://github.com/apache/arrow-datafusion/issues/193#issuecomment-1316825464
Issue seems resolved as of 406c1087bc16f8d2a49e5a9b05d2a0e1b67f7aa5
```bash
jeffrey:~/Code/arrow-datafusion/datafusion-cli$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Running `/media/jeffrey/1tb_860evo_ssd/.cargo_target_cache/debug/datafusion-cli`
DataFusion CLI v14.0.0
❯ select cast(b.timestamp as time) from (select now() as timestamp) b;
+--------------------+
| b.timestamp |
+--------------------+
| 11:10:31.506762991 |
+--------------------+
1 row in set. Query took 0.004 seconds.
❯ explain select cast(b.timestamp as time) from (select now() as timestamp) b;
+---------------+---------------------------------------------------------------------------------------+
| plan_type | plan |
+---------------+---------------------------------------------------------------------------------------+
| logical_plan | Projection: CAST(b.timestamp AS Time64(Nanosecond)) |
| | Projection: timestamp, alias=b |
| | Projection: TimestampNanosecond(1668597032907296503, Some("+00:00")) AS timestamp |
| | EmptyRelation |
| physical_plan | ProjectionExec: expr=[CAST(timestamp@0 AS Time64(Nanosecond)) as b.timestamp] |
| | ProjectionExec: expr=[timestamp@0 as timestamp] |
| | ProjectionExec: expr=[1668597032907296503 as timestamp] |
| | EmptyExec: produce_one_row=true |
| | |
+---------------+---------------------------------------------------------------------------------------+
2 rows in set. Query took 0.005 seconds.
❯
```
--
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