Skip to content

Feature request: support non-equal quantified subquery #19082

@kaiwangchen

Description

@kaiwangchen

Is your feature request related to a problem or challenge?

Here is an example:

create table t (c1 int, c2 int);
insert into t values (1, 2);
select c1 from t where c2 > any(select c2 - 1 from t);

Error during planning: Unsupported AnyOp: '>', only '=' is supported

Describe the solution you'd like

D create table t (c1 int, c2 int);
D insert into t values (1, 2);
D select c1 from t where c2 > any(select c2 - 1 from t);
┌───────┐
│  c1   │
│ int32 │
├───────┤
│   1   │
└───────┘

mysql> create table t (c1 int, c2 int);
mysql> insert into t values (1, 2);
mysql> select c1 from t where c2 > any(select c2 - 1 from t);
+------+
| c1   |
+------+
|    1 |
+------+
1 row in set (0.00 sec)

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions