Skip to content

Conversation

forsaken628
Copy link
Collaborator

@forsaken628 forsaken628 commented Apr 28, 2025

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary


explain raw select * from numbers(1) as t where exists (select number as a from numbers(1) where number = t.number)
----
EvalScalar
├── scalars: [t.number (#0) AS (#0)]
└── Filter
    ├── filters: [SUBQUERY]
    ├── subquerys
    │   └── Subquery (Exists)
    │       ├── output_column: system.numbers.number (#1)
    │       └── EvalScalar
    │           ├── scalars: [numbers.number (#1) AS (#1)]
    │           └── Filter
    │               ├── filters: [eq(numbers.number (#1), t.number (#0))]
    │               └── Scan
    │                   ├── table: system.numbers (#1)
    │                   ├── filters: []
    │                   ├── order by: []
    │                   └── limit: NONE
    └── Scan
        ├── table: system.numbers (#0)
        ├── filters: []
        ├── order by: []
        └── limit: NONE

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Apr 28, 2025
@BohuTANG
Copy link
Member

Signed-off-by: coldWater <[email protected]>
@sundy-li sundy-li merged commit 2bf5b4b into databendlabs:main Apr 29, 2025
146 of 148 checks passed
@forsaken628 forsaken628 deleted the explain_subquery branch April 30, 2025 05:04
@forsaken628 forsaken628 mentioned this pull request Mar 27, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-chore this PR only has small changes that no need to record, like coding styles.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants