Skip to content

fix(core): start with functionAnchor one instead of zero#408

Merged
vbarua merged 1 commit intosubstrait-io:mainfrom
nielspardon:par-anchor-one
Jun 6, 2025
Merged

fix(core): start with functionAnchor one instead of zero#408
vbarua merged 1 commit intosubstrait-io:mainfrom
nielspardon:par-anchor-one

Conversation

@nielspardon
Copy link
Copy Markdown
Member

When validating Substrait plans generated by substrait-java with the current substrait-validator (which is pretty out of date) the validator gives the following warning for all plans:

Warning (code 3005):
at plan.extensions[0].mapping_type<extension_function>.function_anchor:
use of anchor zero is discouraged, as references set to zero may be confused with "unspecified". (code 3005)

This can be easily fixed by assigning functionAnchor values starting from one instead of zero.

Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Copy link
Copy Markdown
Contributor

@Blizzara Blizzara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think this should be fine but will leave open for a day or so in case someone else (mainly @vbarua) would think of a reason why this shouldn't change

Copy link
Copy Markdown
Member

@vbarua vbarua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vbarua vbarua merged commit 007accf into substrait-io:main Jun 6, 2025
12 checks passed
ingomueller-net added a commit to ingomueller-net/substrait-consumer-testing that referenced this pull request Jun 10, 2025
This commit updates the `substrait-java` submodule to the next version,
which breaks the tests, namele substrait-io/substrait-java@007accf. The
breakages are due to substrait-io/substrait-java#408, which changes the
index at which anchors start, which basically changes every plan that
Isthmus prodces.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to ingomueller-net/substrait-consumer-testing that referenced this pull request Jun 10, 2025
This commit updates the `substrait-java` submodule to the next version,
which breaks the tests, namely substrait-io/substrait-java@007accf. The
breakages are due to substrait-io/substrait-java#408, which changes the
index at which anchors start, which basically changes every plan that
Isthmus produces.

Signed-off-by: Ingo Müller <ingomueller@google.com>
ingomueller-net added a commit to substrait-io/consumer-testing that referenced this pull request Jun 10, 2025
This PR updates the `substrait-java` submodule to the next version,
which breaks the tests, namely substrait-io/substrait-java@007accf. The
breakages are due to substrait-io/substrait-java#408, which changes the
index at which anchors start, which basically changes every plan that
Isthmus produces.

This PR also updates all snapshots. The only changes seem to be updates
of anchors and references to them.

Signed-off-by: Ingo Müller <ingomueller@google.com>
@nielspardon nielspardon deleted the par-anchor-one branch June 10, 2025 19:37
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.

3 participants