Repository navigation
test(compliance): add an M5 variant that composes through AGG(dataset.metric) - #758
Open
MrBlack1995 wants to merge 1 commit into
Open
MrBlack1995 wants to merge 1 commit into
MrBlack1995 wants to merge 1 commit into
Conversation
….metric) Since apache#703 a model-scoped metric may evaluate a dataset-scoped metric with AGG(dataset.metric). M5.agg_ref composes the same avg_order_value from two dataset-scoped base metrics that way, tagged OSSIE_SQL_2026, next to the inlined primary. A converter that expands the AGG grades as review. Co-authored-by: Isaac <no-reply@databricks.com>
MrBlack1995
force-pushed
the
test/portability-m5-agg
branch
from
November 19, 2026 05:27
3f5a7d3 to
7d5b0fa
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The follow-up suggested in the #631 review: an M5 variant that tests real composition. Since #703 a model-scoped metric may evaluate a dataset-scoped metric with
AGG(dataset.metric)(core-spec/spec.md, Metric Scoping rule 6), soM5.agg_refcomposes the sameavg_order_valuethat way:OSSIE_SQL_2026, sinceAGGis defined there only. It keeps the primary'sNULLIF, so both forms are NULL when there are no orders.composition-form. The M5 comment, the manifest construct and the README row now describe both.Validation
m5_agg_ref.ossie.yamlpassesvalidation/validate.py; replacingAGG(sales.total_amount)withAGG(sales.amount)fails with the validator's "names a field" error, so the fixture uses the rule as the validator enforces it. All 14 fixtures on this branch validate.AGGinto the base metric's expression grades as review, since the grader cannot prove the two equal.Related Issues
Follows #631 (suggested in its review) and #703. Refs apache/ossie-converters#24. Independent of #700, #756 and #757.