Repository navigation
Snowflake: Preserve COPY delimiters on the constraint-reliance parser line - #55
Merged
osipovartem merged 1 commit intoNov 17, 2026
Conversation
(cherry picked from commit 293ba32)
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
Apply the already isolated COPY delimiter fix to the parser line consumed by current Rustice, preserving the merged RELY/NORELY AST and constraint-characteristics visitor changes.
Both the bare stage-name parser and COPY option loop must leave
;for the outer statement parser. For example:Regressions cover delimiter retention, repeated COPY statements, quoted semicolons, round trips, and malformed or undelimited suffixes. No public AST, dependency, or feature changes.
Validation
Exact source:
0c78f77aeabc5738073e4957b473ce5912ae890e, based onee24d34f.Local Rust 1.99.1, locked/offline CI profile, one build job:
cargo fmt --all -- --check: PASS.cargo test --all-features: 1,636 PASS, zero failures, seven ignored; includes 47 doctests and the merged RELY/visitor regressions.cargo test --features serde --test sqlparser_common: 470 PASS. Retains the pre-existingirrefutable_let_patternswarning instmt_data_loading.rs:147with the string-number feature representation.cargo clippy --all-targets --all-features -- -D warnings: PASS.The commands use explicit
--profile cioverrides (inherits=test, opt-level 1, debug 0, codegen-units 16, LTO off) and the shared clang/lld target. Bounded source/artifact receipts are retained locally. These checks qualify this parser source, not the downstream DataFusion/Rustice composition.