Repository navigation
docs(core-spec): make expression language lists match the grammar and examples - #753
ashlearnnext-star wants to merge 3 commits into
Conversation
… examples Editorial fixes in expression_language.md, no change to the language: - Precedence: add !=, ILIKE and IS DISTINCT FROM to the comparison level. - CAST types: list TIMESTAMP_NTZ, which the construction table already casts to. - Window frames: list ROWS BETWEEN n PRECEDING AND CURRENT ROW, used by the running-average example. - Standards Reference: drop CTEs, which expressions do not support. - Add a blank line so the "Fractional seconds" paragraph no longer renders as a heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jbonofre
left a comment
There was a problem hiding this comment.
LGTM on the content, all five fixes accurately align core-spec/expression_language.md with the rest of the specification, the ANTLR4 grammar, and the compliance examples without changing language semantics.
Before merging, we should:
- Rebase from
main(and resolve conflicts) - Trim the
5. Comparison:line from 3 trailing spaces to 2 so it passes thetrailing-whitespacepre-commit check.
…guage-consistency # Conflicts: # core-spec/expression_language.md
|
Thanks for the review, @jbonofre. I merged main and fixed the conflict on the This PR and #764 change neighbouring lines of the same file, so whichever merges second will need a small conflict fix. I'll take care of it. |
…guage-consistency # Conflicts: # core-spec/expression_language.md
|
Resolved the conflict with #764; the diff is unchanged otherwise. |
MrBlack1995
left a comment
There was a problem hiding this comment.
Checked the five edits on ed79b9f against core-spec/grammar/OssieExpression.g4 and the rest of the document, and all five hold:
- Precedence: the grammar's
NEQtoken is'<>' | '!=',ILIKEshares the rule ofLIKE, andIS [NOT] DISTINCT FROMis a predicate at the same level as the comparisons. The operator table further up already lists!=. - CAST types: the Date/Time Construction table already casts to
TIMESTAMP_NTZ. - Window frames: the grammar's frame bound allows
n PRECEDINGwithCURRENT ROW, which the running-average example uses. - Standards Reference: the unsupported-features table lists CTEs, so the bullet contradicted it.
- The blank line before the rule is right, the paragraph rendered as a heading.
The branch merges into current main without a conflict. I did not run pre-commit or the test suite, since only the document changes.
… examples
Editorial fixes in expression_language.md, no change to the language:
Summary
Related Issues
Checklist
Specification
core-spec/and follow the existing structure[DISCUSS]thread ondev@with a stated end date, and reach lazy consensus (or pass a[VOTE]) before mergedocs/spec_changes.mdrecords rationale, compatibility and migration impact, or the PR explains why no entry is neededOntology
ontology/are consistent with spec changesConverters
Validation
validation/are updated if the spec changedDocumentation
docs/is updated to reflect any user-facing changesCONTRIBUTING.mdis updated if the contribution process changedExamples
examples/are added or updated for any new spec constructsTests
pytest/ CI green)Compliance
NOTICEand/orLICENSEhave been updated per ASF policy