Repository navigation
test(compliance): M7 tests the default NULL placement on the rank only - #775
Open
MrBlack1995 wants to merge 1 commit into
Open
MrBlack1995 wants to merge 1 commit into
MrBlack1995 wants to merge 1 commit into
Conversation
Review notes on apache#700: - LAG and the running SUM write ORDER BY order_date NULLS LAST, so only the rank relies on the OSSIE_SQL_2026 default placement (apache#587) and losing the default shows on that one element. - prior_day_amount becomes prior_order_amount: LAG returns the previous order's amount, which can be from the same day. Co-authored-by: Isaac <no-reply@databricks.com>
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
Follow-up to the two review notes on #700, which merged before I got to them.
LAGand the runningSUMordered byorder_datewithoutNULLS FIRSTorNULLS LAST, so they relied on theOSSIE_SQL_2026default (feat(core-spec): default NULL placement in window ORDER BY #587) just like the rank, and losing the default showed on all three M7 elements. Both now writeORDER BY order_date NULLS LAST, like the spec'sRANK()example, so onlyamount_rankrelies on the default and the rung tests it on one element.prior_day_amountbecomesprior_order_amount:LAG(amount) OVER (ORDER BY order_date)returns the previous order's amount, which can be from the same day.Fixture and manifest only. The grader is unchanged.
Validation
validate.pypasses on the fixture.NULLS LASTdropped from both (cosmetic, since it is the default), and flipped toNULLS FIRST(needs review). The rank stays PORTABLE in all three.Related Issues
Follow-up to #700.