Skip to content

Windowed Value WIP#4125

Draft
hatyo wants to merge 13 commits into
FoundationDB:mainfrom
hatyo:plan-windowed-index
Draft

Windowed Value WIP#4125
hatyo wants to merge 13 commits into
FoundationDB:mainfrom
hatyo:plan-windowed-index

Conversation

@hatyo
Copy link
Copy Markdown
Contributor

@hatyo hatyo commented May 1, 2026

No description provided.

@hatyo hatyo added the DO NOT MERGE do not merge label May 1, 2026
hatyo added 9 commits May 12, 2026 11:24
planning a query like:
select d1.embedding, row_number() over (partition by d2.zone, d2.bookshelf order by euclidean_distance(d2.embedding, d1.embedding) asc options ef_search = 100)
               from documents d1, documents d2

now works.
- add WindowExpression.
- works, handling of predicates is not done yet.
- limited to one unique window expression per query block.
- self contained commit.
@github-actions
Copy link
Copy Markdown

📊 Metrics Diff Analysis Report

Summary

  • New queries: 1
  • Dropped queries: 0
  • Plan changed + metrics changed: 0
  • Plan unchanged + metrics changed: 0
ℹ️ About this analysis

This automated analysis compares query planner metrics between the base branch and this PR. It categorizes changes into:

  • New queries: Queries added in this PR
  • Dropped queries: Queries removed in this PR. These should be reviewed to ensure we are not losing coverage.
  • Plan changed + metrics changed: The query plan has changed along with planner metrics.
  • Metrics only changed: Same plan but different metrics

The last category in particular may indicate planner regressions that should be investigated.

New Queries

Count of new queries by file:

  • yaml-tests/src/test/resources/window-function.metrics.yaml: 1

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

Labels

DO NOT MERGE do not merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant