-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Fuzzer] Subquery error #4562
Comments
@taniabogatsch I think Thijs forwarded this to you after we got stuck on it, so I've assigned you to it for the time being. |
This triggers an assertion in debug mode, namely
The query runs fine in release (ofc because no assertions) with the following output. D SELECT (VALUES(1 != ALL(SELECT 2)));
┌──────────────────────────────────────────────────────────────────┐
│ (SELECT * FROM (VALUES ((NOT 1 = ANY(SELECT 2)))) AS valueslist) │
├──────────────────────────────────────────────────────────────────┤
│ true │
└──────────────────────────────────────────────────────────────────┘ If we change the query to the rewritten column name, then it runs both in debug and in release. D (SELECT * FROM (VALUES ((NOT 1 = ANY(SELECT 2)))) AS valueslist);
┌──────┐
│ col0 │
├──────┤
│ true │
└──────┘ From my understanding this implies that the bug happens somewhere during the construction of the plan? The plans (before the optimization step) are different. If we set a breakpoint in Failing query.
Running query.
I feel like my knowledge of the @Tishj also did some initial debugging of this and I am just gonna put the findings here. The This expression refers to a data chunk that comes from |
Fix #4562: generate table index for dummy scan generated from VALUES clause
Originally discovered in #4152
Actual:
src/common/types/vector.cpp:94: void duckdb::Vector::Reference(duckdb::Vector &): Assertion `other.GetType() == GetType()' failed.
Expected:
The query should output a single true value.
The text was updated successfully, but these errors were encountered: