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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error: 馃敤 Not supported 馃敤 : lookups on joins" thrown when "true and" added to lookup #400

Open
rswheeldon opened this issue Apr 30, 2024 · 0 comments

Comments

@rswheeldon
Copy link

rswheeldon commented Apr 30, 2024

Describe the bug

I have a query with a join and some boolean logic. with an in(). Somehow this is tripping up an edge case in pg-mem. I've produced a simplified example which demonstrates it in the sandbox
(Describe your issue here).

馃敤 Not supported 馃敤 : lookups on joins

馃憠 pg-mem is work-in-progress, and it would seem that you've hit one of its limits.

*锔忊儯 Reconsituted failed SQL statement: SELECT *  FROM foo  INNER JOIN bar  ON (foo .x = bar .x)  WHERE ((true) AND ((foo .x IN (1)) AND (true)))

馃憠 You can file an issue at https://github.com/oguimbal/pg-mem along with a way to reproduce this error (if you can), and  the stacktrace:

To Reproduce

create table foo (x integer);
create table bar (x integer);
insert into foo values (1), (2);
insert into bar values (1), (2);
select * from foo join bar using (x);
select * from foo join bar on foo.x = bar.x where ( foo.x in (1) and true ) ;
select * from foo join bar on foo.x = bar.x where true and ( foo.x in (1) and true ) ;

Note that the first two selects work fine but the third which should be practically identical in output doesn't.

pg-mem version

2.8.1

@rswheeldon rswheeldon changed the title Error: 馃敤 Not supported 馃敤 : lookups on joins thrown when "true and" added to lookup "Error: 馃敤 Not supported 馃敤 : lookups on joins" thrown when "true and" added to lookup Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant