support <=> all or <=> any
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
SET GLOBAL max_connections = 1000;
DROP TABLE IF EXISTS temp_table;
CREATE TABLE t1 (a INT, b TINYINT, CONSTRAINT chk_a CHECK (a >= 0)) PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (20), PARTITION p2 VALUES LESS THAN (30), PARTITION p3 VALUES LESS THAN (40), PARTITION p4 VALUES LESS THAN MAXVALUE);
INSERT INTO t1 VALUES (5, 1), (15, 2), (25, 3);
CREATE TABLE t3 (a INT, b MEDIUMINT, CONSTRAINT unique_b UNIQUE (b));
INSERT INTO t3 VALUES (1, 100000), (2, 200000), (3, 300000);
Error executing SQL:
SELECT * FROM t3 WHERE t3.a <=> ALL (SELECT t1.a FROM t1 PARTITION (p0)) ORDER BY t3.a
Error Message:(1105, "We don't support <=> all or <=> any now")
### 2. What did you expect to see? (Required)
Support <=> all or <=>
### 3. What did you see instead (Required)
Error executing SQL:
SELECT * FROM t3 WHERE t3.a <=> ALL (SELECT t1.a FROM t1 PARTITION (p0)) ORDER BY t3.a
Error Message:(1105, "We don't support <=> all or <=> any now")
### 4. What is your TiDB version? (Required)
mysql> SELECT TIDB_VERSION();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| TIDB_VERSION() |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.5.1
Edition: Community
Git Commit Hash: 7d16cc79e81bbf573124df3fd9351c26963f3e70
Git Branch: heads/refs/tags/v7.5.1
UTC Build Time: 2024-02-27 14:28:32
GoVersion: go1.21.6
Race Enabled: false
Check Table Before Drop: false
Store: unistore |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Contributor guide
Assessment
This issue has not been assessed yet.