-
Notifications
You must be signed in to change notification settings - Fork 32
dialect aware sketch decomposition #2559
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7bb3756
Add semi-additive metric declaration
betodealmeida 19bcbd6
Attach semi-additive rules to metric components
betodealmeida 2dd882e
Support semi-additive metric collapse SQL
betodealmeida 6b37ea6
Support semi-additive derived metrics
betodealmeida 3a8c202
Make pre-agg matching semi-additive aware
betodealmeida 9cae7a6
Guard semi-additive materialization paths
betodealmeida a2fd915
Fix cube materialization test isolation
betodealmeida 161e255
Make _semi_additive_dimension_requested role-sensitive
betodealmeida ab7c6d8
Show in UI
betodealmeida 5beb5b4
Create/edit fields
betodealmeida f0e41cf
Fix current value on edit
betodealmeida d94c413
Use reaggregate instead
betodealmeida 8764f1b
Prepare semi-additive metrics for review
betodealmeida f043851
Fix generated schema and reaggregate test expectations
betodealmeida 5b3ba3f
Increase coverage
betodealmeida 01c2103
Fix reaggregate semantic fingerprint expectations
betodealmeida 9ab6f79
Improvements
betodealmeida 17e0ca9
More fixes
betodealmeida 5b698bc
Increase coverage
betodealmeida d895d4b
Add parameters for sketch-backed reaggregation
robinld 2951f23
Make metric decomposition dialect-aware
robinld 64c6773
Serialize sketches for materialization targets
robinld a2c80ce
Restore docstrings flagged in review
robinld 62013b2
Exercise a registered sketch family through the SQL endpoints
robinld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...ver/alembic/versions/2026_08_24_0000-rg0001reaggregate_add_reaggregate_to_noderevision.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| """ | ||
| Add reaggregate column to noderevision | ||
|
|
||
| Revision ID: rg0001reaggregate | ||
| Revises: cm0003dropowner | ||
| Create Date: 2026-08-24 00:00:00.000000+00:00 | ||
| """ | ||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "rg0001reaggregate" | ||
| down_revision = "cm0003dropowner" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| op.add_column( | ||
| "noderevision", | ||
| sa.Column("reaggregate", sa.JSON(), nullable=True), | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_column("noderevision", "reaggregate") |
29 changes: 29 additions & 0 deletions
29
...ion_server/alembic/versions/2026_09_15_0000-fm0001params_add_params_to_frozen_measures.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """ | ||
| Add params column to frozen_measures | ||
|
|
||
| Adds a JSON column to persist tuning parameters (e.g., accuracy) for sketch-backed measures. | ||
|
|
||
| Revision ID: fm0001params | ||
| Revises: rg0001reaggregate | ||
| Create Date: 2026-09-15 00:00:00.000000+00:00 | ||
| """ | ||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "fm0001params" | ||
| down_revision = "rg0001reaggregate" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| op.add_column( | ||
| "frozen_measures", | ||
| sa.Column("params", sa.JSON(), nullable=True), | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_column("frozen_measures", "params") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we deleted so much docstring in this PR? Is it stale?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I had a commit where I put some of them back because I took it too far