Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(query): Adding support of optimize_with_agg logical plan to make use of aggregated metrics in HQE #1923

Merged

Conversation

MichaelFerence
Copy link
Contributor

@MichaelFerence MichaelFerence commented Jan 2, 2025

Context

This PR introduces support for the optimize_with_agg function in the Logical Plan. The optimize_with_agg function is a no-operation (no-op) that is used in conjunction with aggregation queries. It ensures that the optimization logic is preserved and applied correctly during the aggregation phase without interfering with the underlying data or query execution flow. This enhancement allows users to pass queries with optimize_with_agg and see a proper Logical Plan with the correct tree structure.

What Does This PR Do?

  1. Adds optimize_with_agg to MiscellaneousFunctionId.
  2. Updates ProtoConverters to support optimize_with_agg.
  3. Updates Query Service Proto to include OPTIMIZE_WITH_AGG.
  4. Modifies DefaultPlanner to handle optimize_with_agg as a no-op.
  5. Ensures proper Logical Plan tree structure for queries with optimize_with_agg.

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?
  • Tests for the changes have been added (for bug fixes / features) ?
  • Docs have been added / updated (for bug fixes / features) ?

Current behavior :
Unsupported optimize_with_agg Function

New behavior :
Supported optimize_with_agg Function

@MichaelFerence MichaelFerence marked this pull request as ready for review January 3, 2025 17:59
@MichaelFerence MichaelFerence changed the title Adding support of optimize with agg Adding support of optimize_with_agg Jan 3, 2025
@sandeep6189 sandeep6189 changed the title Adding support of optimize_with_agg feat(query): Adding support of optimize_with_agg logical plan to make use of aggregated metrics in HQE Jan 3, 2025
sandeep6189
sandeep6189 previously approved these changes Jan 3, 2025
@sandeep6189 sandeep6189 merged commit 990dbf0 into filodb:develop Jan 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants