Repository navigation
Fixed markDeletedTables for bigquery - #4930
Merged
Merged
Conversation
pmbrull
approved these changes
May 13, 2022
ayush-shah
approved these changes
May 13, 2022
|
[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed! |
8 tasks done
mohityadav766
added a commit
that referenced
this pull request
Jul 10, 2026
The retry halved the raw (uncapped) input while buildRequest re-capped every attempt, so any input >16384 chars resent byte-identical payloads and never converged (#4930 persisted for the token-dense case). Cap once up front so halving operates on what is actually sent, and: - detect token overflow via typed ValidationException + a named marker constant, so throttling/auth/other validation errors are never retried - make halveInput empty-safe and surrogate-pair-safe (emoji path) - split the retry decision into a plain requireRetryable guard (clearer loop) - reuse StringUtils.truncate for the char cap - cover the retry loop, classifier, and budget exhaustion with mock-based tests Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mohityadav766
added a commit
that referenced
this pull request
Jul 13, 2026
…eption (#29920) * Fixes #4930: cap Titan Bedrock embedding input to avoid ValidationException Titan text-embedding models accept at most 8192 input tokens and expose no request-side truncate directive, so oversized chunks were rejected by Bedrock with a ValidationException. The Cohere family already capped its input client-side; generalize that cap so Titan V1/V2 also truncate oversized input. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Retry with precise truncation when Bedrock reports a token-limit overflow The 16384-char cap keeps typical English input to one call but can still be exceeded by token-dense scripts (CJK, emoji) where chars approx tokens. On a token-limit ValidationException, parse the reported max/actual token counts, truncate the input to fit, and retry — a content-agnostic guarantee the char cap alone cannot provide. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Simplify token-overflow retry: halve input instead of parsing error counts Parsing the exact token counts out of AWS's error message is fragile and buys little: the char cap already bounds input, so halving converges in ~2 retries. Keep only the message-based detection (AWS gives no machine-readable code for token overflow) and drop the two regexes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fix retry no-op: cap input up front, plus review follow-ups The retry halved the raw (uncapped) input while buildRequest re-capped every attempt, so any input >16384 chars resent byte-identical payloads and never converged (#4930 persisted for the token-dense case). Cap once up front so halving operates on what is actually sent, and: - detect token overflow via typed ValidationException + a named marker constant, so throttling/auth/other validation errors are never retried - make halveInput empty-safe and surrogate-pair-safe (emoji path) - split the retry decision into a plain requireRetryable guard (clearer loop) - reuse StringUtils.truncate for the char cap - cover the retry loop, classifier, and budget exhaustion with mock-based tests Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mohityadav766
added a commit
that referenced
this pull request
Jul 14, 2026
…eption (#29920) (#30021) Backport of #29920 to 1.13. Titan text-embedding models accept at most 8192 input tokens and expose no request-side truncate directive, so oversized chunks were rejected by Bedrock with a ValidationException. Cap the input at 16384 chars up front, and on a token-limit ValidationException halve the (already capped) input and retry — a content-agnostic guarantee the char cap alone cannot provide for token-dense scripts (CJK, emoji). Adapted from the original: 1.13's BedrockEmbeddingClient predates the embedding-family refactor (Cohere support, doEmbedQuery, per-family request builders), so the fix is applied to the Titan-only shape that exists here. The family/Cohere portions of the upstream change and its tests are omitted. (cherry picked from commit 86909c4) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This branch was previously deployed
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.








Describe your changes :
Fix #4925
Type of change :
Checklist:
Reviewers
@open-metadata/ingestion