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

Unexpected Set for IN is not created yet error #8859

Closed
alesapin opened this issue Jan 27, 2020 · 3 comments
Closed

Unexpected Set for IN is not created yet error #8859

alesapin opened this issue Jan 27, 2020 · 3 comments
Labels
bug Confirmed user-visible misbehaviour in official release st-fixed

Comments

@alesapin
Copy link
Member

alesapin commented Jan 27, 2020

How to reproduce

CREATE TABLE testmt
(
    `CounterID` UInt64, 
    `value` String
)
ENGINE = MergeTree()
ORDER BY CounterID;

INSERT INTO testmt VALUES (1, '1');

SELECT arrayJoin([CounterID NOT IN (2)]) AS counter
FROM testmt
WHERE CounterID IN (2)
GROUP BY counter;

Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Set for IN is not created yet.

Introduced in #7497.

@alesapin alesapin added the bug Confirmed user-visible misbehaviour in official release label Jan 27, 2020
@alesapin
Copy link
Member Author

@amosbird Maybe you have any ideas about how to fix it?

@amosbird
Copy link
Collaborator

Interesting.

a reduced test:

select CounterID NOT IN (2) a FROM testmt WHERE CounterID IN (2) group by a;

however these two variants work:

SELECT CounterID NOT IN (3) a FROM testmt WHERE CounterID IN (2) group by a;

SELECT CounterID NOT IN (2) a FROM testmt WHERE CounterID IN (2);

Is it somehow urgent? I might no be available recently.

@filimonov
Copy link
Contributor

Fixed in #8868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed user-visible misbehaviour in official release st-fixed
Projects
None yet
Development

No branches or pull requests

3 participants