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

bug: join on panic caused by invalid data type #16916

Closed
1 of 2 tasks
b41sh opened this issue Nov 22, 2024 · 0 comments · Fixed by #16937
Closed
1 of 2 tasks

bug: join on panic caused by invalid data type #16916

b41sh opened this issue Nov 22, 2024 · 0 comments · Fixed by #16937
Assignees
Labels
C-bug Category: something isn't working found-by-sqlsmith

Comments

@b41sh
Copy link
Member

b41sh commented Nov 22, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

v1.2.662

What's Wrong?

join on panic caused by invalid data type

panicked at src/query/expression/src/filter/selector.rs:494:17:
assertion failed: matches!(return_type, DataType::Boolean |
    DataType::Nullable(box DataType::Boolean))
   0: backtrace::backtrace::libunwind::trace
             at /home/b41sh/.cargo/git/checkouts/backtrace-rs-fb1f822361417489/72265be/src/backtrace/libunwind.rs:116:5

How to Reproduce?

MySQL [(none)]> create table tt1 (a int, b int);
Query OK, 0 rows affected (0.180 sec)

MySQL [(none)]> insert into tt1 values(1, 2),(3, 4);
Query OK, 2 rows affected (0.223 sec)

MySQL [(none)]> create table tt2 (a int, b int);
Query OK, 0 rows affected (0.187 sec)

MySQL [(none)]> insert into tt2 values(1, 2),(3, 4);
Query OK, 2 rows affected (0.217 sec)

MySQL [(none)]> select * FROM tt1 LEFT ANTI JOIN tt2 ON 11981933213501947393::DATE;
ERROR 1105 (HY000): PanicError. Code: 1104, Text = assertion failed: matches!(return_type, DataType::Boolean |
    DataType::Nullable(box DataType::Boolean)).

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working found-by-sqlsmith
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants