Repository navigation
feat(core)!: update to Substrait v0.109.0 - #1467
Draft
Adam-Alani wants to merge 5 commits into
Draft
Adam-Alani wants to merge 5 commits into
Adam-Alani wants to merge 5 commits into
Conversation
Apply the read filter before selecting columns, and apply emit to the projected schema. Preserve the field order of the mask on named tables, virtual tables and local files. BREAKING CHANGE: Spark now applies whole-column read masks in selection order and rejects unsupported nested read masks.
Read and write detached relations without losing opaque references. Accept named-lambda capability declarations and report unsupported plan definitions. Supply the execution timezone for calendar arithmetic on zoned timestamps and match each overload against its argument count. BREAKING CHANGE: Replace the removed subtract:ptstz_iyear overload with subtract:ptstz_iyear_str and supply an IANA timezone or the current_timezone expression.
The datetime mapper runs before default matching. It claimed year/month arithmetic on a zoned timestamp even when another extension declares the two operands, and replaced that call with the standard three-argument function. The mapper now leaves a call to default matching when a declaration matches the operand types exactly. In the other direction, a standard call keeps its current_timezone argument when the two remaining operands would convert to that declaration.
… operands The check that decides whether an aggregate needs a carried binding took the first declaration with a matching signature. Conversion from Calcite prefers a later declaration when the first one does not bind the operands. The check now applies the same operand test, so the binding stays in that case.
Spec v0.109.0 requires a UUID literal to be exactly 16 bytes in network byte order. Java already encoded and decoded big-endian, but decoding read the first 16 bytes of a longer value and failed with a BufferUnderflowException on a shorter one. It now rejects any other length with an IllegalArgumentException. The release also adds table functions, whose functions_table.yaml the extension model cannot read yet, so the default catalog leaves it out until they are modeled. BREAKING CHANGE: converting a UUID literal whose bytes are not exactly 16 long now throws IllegalArgumentException instead of decoding the first 16 bytes.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
Author
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.
Why
Substrait v0.109.0 is the release that adds table functions, and it also tightens UUID literals: a UUID value must be exactly 16 bytes in network byte order. Java already encoded and decoded UUIDs big-endian, but decoding read the first 16 bytes of a longer value and failed with a
BufferUnderflowExceptionon a shorter one.What
The build takes its spec inputs (protobuf, ANTLR grammar, extension YAMLs and dialect schema) from v0.109.0. Converting a UUID literal whose bytes are not exactly 16 long now throws an
IllegalArgumentException. The release's newfunctions_table.yamldeclares only table functions, which the extension model cannot read yet, so the default catalog leaves it out until they are modeled.How
ExpressionCreator.uuidchecks the length before decoding. New tests check the spec's byte-order vectors and the rejection of 0-, 15- and 17-byte values, and the generic round-trip fixture now generates 16-byte UUIDs.BREAKING CHANGE: converting a UUID literal whose bytes are not exactly 16 long now throws IllegalArgumentException instead of decoding the first 16 bytes.