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
Asof join with equality throws Not implemented Error. #9396
Comments
The problem is that the optimiser can tell that your test data causes the inequality to always be true. We should fix this, but it is a somewhat artificial situation. |
I had this crash on me in a process where we batch-process some data, does not feel that artificial to me. (Not this specific query, of course, but an equivalent one with one equality and one inequality.) |
Ah sorry, it read like a random finding. But machine generated makes sense. Thanks for isolating it so nicely. |
No worries. Thanks for looking into this! :) |
Don't remove the inequality condition for AsOf joins even if the optimiser can tell it is always true. fixes: duckdb#9396 fixes: duckdblabs/duckdb-internal#517
Issue #9396: AsOf Inequality Optimisation
What happens?
When I run the example from the documentation for asof join on tables with actual data, I get an
Error: Not implemented Error: Unsupported comparison type for ASOF join
.When I remove either the equality condition or data from one of the tables, everything works. So all of
and
work fine.
Also, changing the names of all columns and tables preserves the problem.
To Reproduce
OS:
Ubuntu x64 in WSL on Windows 11
DuckDB Version:
v0.9.2-dev51 2646836
DuckDB Client:
cli
Full Name:
Míma Hlaváček
Affiliation:
Blindspot.ai
Have you tried this on the latest
main
branch?I have tested with a main build
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: