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

bug: allow cast interval to string #17269

Closed
1 of 2 tasks
rad-pat opened this issue Jan 13, 2025 · 1 comment · Fixed by #17395
Closed
1 of 2 tasks

bug: allow cast interval to string #17269

rad-pat opened this issue Jan 13, 2025 · 1 comment · Fixed by #17395
Assignees
Labels
C-bug Category: something isn't working

Comments

@rad-pat
Copy link

rad-pat commented Jan 13, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

Version

v1.2.680-nightly

What's Wrong?

Unable to cast Interval as a string.

How to Reproduce?

select '1 days'::INTERVAL::STRING;

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@rad-pat rad-pat added the C-bug Category: something isn't working label Jan 13, 2025
@rad-pat
Copy link
Author

rad-pat commented Jan 31, 2025

Using function to_string() seems to work, but the use-case we have if for CAST(interval as string)

select to_string('1 days'::INTERVAL);

to_string('1 days'::INTERVAL)|
-----------------------------+
1 day                        |

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

Successfully merging a pull request may close this issue.

2 participants