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

TiDB push down NULL Set literal, while both TiFlash and TiKV not support it #23952

Open
windtalker opened this issue Apr 12, 2021 · 1 comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@windtalker
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int ,b set("a"),c varchar(10));
alter table t set tiflash replica 1;

2. What did you expect to see? (Required)

query return results.

3. What did you see instead (Required)

In TiDB + TiFlash

select * from t as x where x.c > (select b from t as y where y.a>1 limit 1); -- expect successfully; but got
-- ERROR 1105 (HY000): Illegal types of arguments (String, UInt64) of function greater

In TiDB + TiKV

mysql> select * from t as x where x.c > (select b from t as y where y.a>1 limit 1);select * from t as x where x.c > (select b from t as y where y.a>1 limit 1);
ERROR 1105 (HY000): other error: [components/tidb_query_expr/src/types/expr_builder.rs:295]: Invalid compare_bytes (sig = GtString) signature: Evaluate error: [components/tidb_query_expr/src/types/function.rs:268]: Unsupported type: Set

4. What is your TiDB version? (Required)

master @dbd31ad0441c4e0feba69773c6a7d21154a6ccef

@cosven
Copy link
Contributor

cosven commented Apr 12, 2021

/sig execution
/severity moderate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants