Skip to content

[Bug]: Non-scalar subquery as non-root expression not yet supported #3312

Closed

Description

@aressu1985

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):0.5.0
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

[ERROR]
[SCRIPT FILE]: cases/subquery/subquery-with-exists.sql
[ROW NUMBER]: 274
[SQL STATEMENT]: SELECT EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a) IS NULL from t1 a;
[EXPECT RESULT]:
EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a > t1.a) IS NULL
0
0
0
[ACTUAL RESULT]:
EXISTS subquery as non-root expression not yet supported

[ERROR]
[SCRIPT FILE]: cases/subquery/subquery-with-exists.sql
[ROW NUMBER]: 275
[SQL STATEMENT]: SELECT EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a) IS NOT NULL from t1 a;
[EXPECT RESULT]:
EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a < t1.a) IS NOT NULL
1
1
1
[ACTUAL RESULT]:
EXISTS subquery as non-root expression not yet supported

[ERROR]
[SCRIPT FILE]: cases/subquery/subquery-with-exists.sql
[ROW NUMBER]: 276
[SQL STATEMENT]: SELECT EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a) IS NULL from t1 a;
[EXPECT RESULT]:
EXISTS(SELECT a FROM t1 WHERE b = 2 and a.a = t1.a) IS NULL
0
0
0
[ACTUAL RESULT]:
EXISTS subquery as non-root expression not yet supported

[ERROR]
[SCRIPT FILE]: cases/subquery/subquery-with-exists.sql
[ROW NUMBER]: 286
[SQL STATEMENT]: select 1.1 * exists(select * from t1);
[EXPECT RESULT]:
1.1 * exists(select * from t1)
1.1
[ACTUAL RESULT]:
EXISTS subquery as non-root expression not yet supported

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added
    kind/bug
    bvt
    on Jun 23, 2022
  2. added this to the v0.5.0 milestone on Jun 23, 2022
  3. modified the milestones: v0.5.0, v0.6.0 on Jun 23, 2022
  4. aunjgr commented on Jun 24, 2022

    @aunjgr
    Contributor

    Should implement MARK join to handle this case.

  5. changed the title [-][Bug]: EXISTS subquery as non-root expression not yet supported[/-] [+][Bug]: Non-scalar subquery as non-root expression not yet supported[/+] on Jun 24, 2022
  6. domingozhang commented on Jul 1, 2022

    @domingozhang
    Contributor

    same issue as #3309

  7. 7 remaining items

  8. aunjgr commented on Nov 21, 2022

    @aunjgr
    Contributor

    Can be done in 0.7

  9. aunjgr commented on Nov 25, 2022

    @aunjgr
    Contributor

    No progress on this issue yet.

  10. aunjgr commented on Dec 1, 2022

    @aunjgr
    Contributor

    No progress yet

  11. aunjgr commented on Dec 5, 2022

    @aunjgr
    Contributor

    No progress yet.

  12. aunjgr commented on Dec 13, 2022

    @aunjgr
    Contributor

    No progress yet.

  13. aunjgr commented on Dec 27, 2022

    @aunjgr
    Contributor

    No progress yet

  14. aunjgr commented on Jan 3, 2023

    @aunjgr
    Contributor

    No progress yet

  15. aunjgr commented on Jan 9, 2023

    @aunjgr
    Contributor

    Supposed to be done this week.

  16. aunjgr commented on Jan 16, 2023

    @aunjgr
    Contributor

    Working on it.

  17. assigned and unassigned on Jan 19, 2023
  18. aunjgr commented on Jan 19, 2023

    @aunjgr
    Contributor

    PR merged.

  19. aressu1985 commented on Feb 2, 2023

    @aressu1985
    ContributorAuthor

    fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bvtkind/bugseverity/s1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions