Skip to content

refactor(sql): improve agg index rewrite matching#19567

Draft
forsaken628 wants to merge 13 commits intodatabendlabs:mainfrom
forsaken628:aggr-index
Draft

refactor(sql): improve agg index rewrite matching#19567
forsaken628 wants to merge 13 commits intodatabendlabs:mainfrom
forsaken628:aggr-index

Conversation

@forsaken628
Copy link
Collaborator

@forsaken628 forsaken628 commented Mar 18, 2026

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

Summary

This PR refactors aggregating index rewrite to use structural expression matching instead of string-based matching.

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

@forsaken628 forsaken628 requested a review from b41sh March 18, 2026 13:35
@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Mar 18, 2026
# Conflicts:
#	src/query/sql/tests/it/framework/golden.rs
#	src/query/sql/tests/it/framework/lite_context.rs
#	src/query/sql/tests/it/framework/mod.rs
#	src/query/sql/tests/it/optimizer/eager_aggregation.rs
#	src/query/sql/tests/it/optimizer/eager_aggregation.txt
#	src/query/sql/tests/it/optimizer/mod.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-refactor this PR changes the code base without new features or bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants