Skip to content

Unable to cast Time32 to bigint type #19036

@Omega359

Description

@Omega359

Describe the bug

> select '03:12:44'::time::bigint;
+------------------+
| Utf8("03:12:44") |
+------------------+
| 11564000000000   |
+------------------+
1 row(s) fetched.
Elapsed 0.024 seconds.

> select  arrow_cast('03:12:44'::time, 'Time32(Second)')::int::bigint;
+-----------------------------------------------------+
| arrow_cast(Utf8("03:12:44"),Utf8("Time32(Second)")) |
+-----------------------------------------------------+
| 11564                                               |
+-----------------------------------------------------+
1 row(s) fetched.
Elapsed 0.004 seconds.

> select  arrow_cast('03:12:44'::time, 'Time32(Second)')::bigint;
This feature is not implemented: Unsupported CAST from Time32(Second) to Int64

This cast should work as expected.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions