models: strip minLength and maxLength from relaxed write schema#2822
Merged
models: strip minLength and maxLength from relaxed write schema#2822
minLength and maxLength from relaxed write schema#2822Conversation
Connectors emit `maxLength` constraints reflecting source column sizes. When these constraints pass through to `flow://relaxed-write-schema` and intersect with the inferred schema via `allOf`, the most restrictive bound wins. This causes materialization validation failures when transformations like SHA-256 redaction produce values longer than the original column limit. * Add `minLength` and `maxLength` to `RelaxedSchemaObj`'s stripped keyword set, matching the existing pattern for `type`, `required`, `format`, `const`, and `enum` * Add `maxLength` to the test fixture and a focused unit test Part of #2818
danielnelson
approved these changes
Mar 31, 2026
github-actions Bot
pushed a commit
to estuary/homebrew-flowctl
that referenced
this pull request
Apr 14, 2026
This releases the new Target Naming setting on materializations, in addition to a couple of other smaller changes that impact `flowctl`: --- * models: strip `minLength` and `maxLength` from relaxed write schema by @jshearer in estuary/flow#2822 * models,ops: add a task `flags` mechanism for runtime feature flags by @jgraettinger in estuary/flow#2786 * Shuffle v2: disk-backed log pipeline with zero-copy combiner pass-through by @jgraettinger in estuary/flow#2778 * discovers: replace invalid collection keys with discovered fallback keys by @jshearer in estuary/flow#2808 * Update default agent API URL to api.estuary.dev by @skord in estuary/flow#2825 * Target naming phase 1 by @jshearer in estuary/flow#2809
github-actions Bot
pushed a commit
to estuary/homebrew-flowctl
that referenced
this pull request
Apr 14, 2026
This releases the new Target Naming setting on materializations, in addition to a couple of other smaller changes that impact `flowctl`: --- * models: strip `minLength` and `maxLength` from relaxed write schema by @jshearer in estuary/flow#2822 * models,ops: add a task `flags` mechanism for runtime feature flags by @jgraettinger in estuary/flow#2786 * Shuffle v2: disk-backed log pipeline with zero-copy combiner pass-through by @jgraettinger in estuary/flow#2778 * discovers: replace invalid collection keys with discovered fallback keys by @jshearer in estuary/flow#2808 * Update default agent API URL to api.estuary.dev by @skord in estuary/flow#2825 * Target naming phase 1 by @jshearer in estuary/flow#2809
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.
Connectors emit
maxLengthconstraints reflecting source column sizes. When these constraints pass through toflow://relaxed-write-schemaand intersect with the inferred schema viaallOf, the most restrictive bound wins. This causes materialization validation failures when transformations like SHA-256 redaction produce values longer than the original column limit.minLengthandmaxLengthtoRelaxedSchemaObj's stripped keyword set, matching the existing pattern fortype,required,format,const, andenumPart of #2818