Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support binary temporal coercion for Date64 and Timestamp types #8275

Closed
Tracked by #3148
gruuya opened this issue Nov 20, 2023 · 1 comment · Fixed by #8616
Closed
Tracked by #3148

Support binary temporal coercion for Date64 and Timestamp types #8275

gruuya opened this issue Nov 20, 2023 · 1 comment · Fixed by #8616
Labels
bug Something isn't working

Comments

@gruuya
Copy link
Contributor

gruuya commented Nov 20, 2023

Describe the bug

Even though Date64 can be cast into Timestamp inside arrow-cast, DataFusion doesn't allow this.

To Reproduce

select arrow_cast(now(), 'Date64') < arrow_cast('2022-02-02 02:02:02', 'Timestamp(Nanosecond, None)');
Error during planning: Cannot infer common argument type for comparison operation Date64 < Timestamp(Nanosecond, None)

Expected behavior

select arrow_cast(now(), 'Date64') < arrow_cast('2022-02-02 02:02:02', 'Timestamp(Nanosecond, None)');
+-------------------------------------+
| now() < Utf8("2022-02-02 02:02:02") |
+-------------------------------------+
| false                               |
+-------------------------------------+
1 row in set. Query took 0.019 seconds.

Additional context

No response

@alamb
Copy link
Contributor

alamb commented Nov 20, 2023

Added to list on #3148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants