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

Query with comparison on boolean column results in "Invalid type: Invalid Type [BOOL]: Invalid type for index" #516

Closed
mrigger opened this issue Apr 11, 2020 · 1 comment · Fixed by #519

Comments

@mrigger
Copy link
Contributor

mrigger commented Apr 11, 2020

Consider the following statements:

CREATE TABLE t0(c0 BOOL UNIQUE);
INSERT INTO t0(c0) VALUES (0);
SELECT * FROM t0 WHERE t0.c0 = true; -- Error: Invalid type: Invalid Type [BOOL]: Invalid type for index

Unexpectedly, the SELECT results in an error Error: Invalid type: Invalid Type [BOOL]: Invalid type for index.

I found this issue based on the latest master branch (commit 9795d18).

@Mytherin
Copy link
Collaborator

Fixed in 331cce4, this is a continuation of #504, with another missing boolean type in the index except now for lookups. All the boolean types should now be properly handled by the index.

@hannes hannes linked a pull request Apr 12, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants