Repository navigation
fix(compliance): follow up on the wide table stores fixture - #735
Merged
christianeu-db merged 1 commit intoNov 15, 2026
Merged
Conversation
Address the review of apache#728: - Add a21: store_returns.total_returns by date_dim.year on stores_ambiguous succeeds, because E_AMBIGUOUS_PATH applies only to paths between datasets that the lowering joins. - Renumber the stores error cases so they follow the order of the Section 8 table: e22 E_NO_PATH, e23 E_NO_ANCHOR, e24 and e25 E_AMBIGUOUS_PATH. - Rename the physical date_dim column to d_year, since YEAR is a reserved word in standard SQL. The model field stays year. - Correct the a17 and README explanation: an INNER JOIN drops only SS4 and leaves a NULL group of 40. - State that the stores rows are not from the specification, and scope the retail fixture headers to the retail cases. - Validate every wide table model with a glob in compliance-validate.
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.
Follow-up to #728, addressing the non-blocking review comments.
Changes
a21_single_path_on_ambiguous_model.store_returns.total_returnsbydate_dim.yearonstores_ambiguousreturns rows. Section 8 row 17 raisesE_AMBIGUOUS_PATHonly for paths "between datasets that the lowering joins", andstore_returnshas a single path todate_dim. Without this case, an engine that rejects the whole model passes the ambiguous-path cases.e22E_NO_PATH(row 13),e23E_NO_ANCHOR(row 15),e24ande25E_AMBIGUOUS_PATH(row 17). The cross-references ina18–a20and the README are updated.date_dim.year→d_yearinstores.sql, becauseYEARis reserved in standard SQL (and in Calcite, Flink, H2). The model field is stillyear, throughsql: d_year.INNER JOINdrops only SS4, since SS5 still matches C3, so the NULL group would be 40, not missing. Fixed ina17and the README fixtures section, and thespeclist now cites Section 6 (S1) instead of 5.5.stores.sqlnow say that Appendix B.3 gives no rows, so the stores data is chosen for the cases. Theretailfixture headers now apply only to the retail cases.compliance-validateusescompliance/wide_table/*/*.ossie.yaml, so new fixtures are validated automatically.No expected rows change.
Testing
make compliance-validate: 12 of 12 files pass.stores.sqlinto DuckDB and recomputeda16–a21with the lowering of Sections 5.4–5.5. All of them matchexpected.json.