Skip to content

Conversation

@KKould
Copy link
Member

@KKould KKould commented Feb 14, 2024

What problem does this PR solve?

select 1 union select 3 union select 2

+---+
| 1 |
+===+
| 3 |
|---|
| 1 |
|---|
| 2 |
+---+

explain select 1 union select 3 union select 2

+--------------------------------------------------+
| PLAN                                             |
+==================================================+
| Aggregate [] -> Group By [1] [HashAggregate]     |
|   Union left: [1], right: [2]                    |
|     Aggregate [] -> Group By [1] [HashAggregate] |
|       Union left: [1], right: [3]                |
|         Projection [1] [Project]                 |
|           Dummy [Dummy]                          |
|         Projection [3] [Project]                 |
|           Dummy [Dummy]                          |
|     Projection [2] [Project]                     |
|       Dummy [Dummy]                              |
+--------------------------------------------------+

Code changes

  • Has Rust code change
  • Has CI related scripts change

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Note for reviewer

@KKould KKould added the enhancement New feature or request label Feb 14, 2024
@KKould KKould self-assigned this Feb 14, 2024
@KKould KKould mentioned this pull request Feb 14, 2024
48 tasks
@KKould KKould merged commit 0270f6b into KipData:main Feb 14, 2024
@KKould KKould added this to the SQL 2016 milestone Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant