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

Can not compare durations and intervals #11891

Closed
alamb opened this issue Aug 8, 2024 · 0 comments · Fixed by #11876
Closed

Can not compare durations and intervals #11891

alamb opened this issue Aug 8, 2024 · 0 comments · Fixed by #11876
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Aug 8, 2024

Is your feature request related to a problem or challenge?

(broken out from #11876 for more visibility)

@samuelcolvin writes:

We regularly want to allow queries of the form

SELECT * FROM records WHERE end_timestamp - start_timestamp > interval '2 seconds'

Until now that failed with

type_coercion: Cannot infer common argument type for comparison operation Duration(Microsecond) > Interval(MonthDayNano)

Describe the solution you'd like

The query should work

Describe alternatives you've considered

No response

Additional context

(broken out from #11876 for more visibility)

@alamb alamb added the enhancement New feature or request label Aug 8, 2024
@alamb alamb changed the title Can not compare Can not compare durations and intervals Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant