Skip to content

Snowflake: Preserve COPY delimiters on the constraint-reliance parser line - #55

Merged
osipovartem merged 1 commit into
feat/snowflake-schema-modifiers-20261113from
fix/copy-delimiter-rely-integration-20261117
Nov 17, 2026
Merged

osipovartem merged 1 commit into
feat/snowflake-schema-modifiers-20261113from
fix/copy-delimiter-rely-integration-20261117

Conversation

@osipovartem

Copy link
Copy Markdown

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:

COPY INTO target FROM @source; SELECT 2;
COPY INTO @target FROM (SELECT 1) VALIDATION_MODE = RETURN_ROWS; SELECT 2;

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 on ee24d34f.
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-existing irrefutable_let_patterns warning in stmt_data_loading.rs:147 with the string-number feature representation.
  • cargo clippy --all-targets --all-features -- -D warnings: PASS.

The commands use explicit --profile ci overrides (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.

@osipovartem
osipovartem merged commit 84d4772 into feat/snowflake-schema-modifiers-20261113 Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant