Skip to content

fix(core): correct type short names for binary and fixedbinary#826

Merged
vbarua merged 3 commits intomainfrom
vbarua/short-type-name-fixes
May 1, 2026
Merged

fix(core): correct type short names for binary and fixedbinary#826
vbarua merged 3 commits intomainfrom
vbarua/short-type-name-fixes

Conversation

@vbarua
Copy link
Copy Markdown
Member

@vbarua vbarua commented Apr 30, 2026

Type.Binary was emitting "binary" instead of the spec-mandated short name
"vbin", and Type.FixedBinary / ParameterizedType.FixedBinary were emitting
"fbinary" instead of "fbin". These mismatches caused function signature key
lookup failures for any function with binary or fixedbinary arguments.

vbarua and others added 2 commits April 30, 2026 15:49
…ypeString

Type.Binary was emitting "binary" instead of the spec-mandated short name
"vbin", and Type.FixedBinary / ParameterizedType.FixedBinary were emitting
"fbinary" instead of "fbin". These mismatches caused function signature key
lookup failures for any function with binary or fixedbinary arguments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a parameterized test suite that explicitly asserts each type maps to
its canonical short name from https://substrait.io/extensions/#type-short-names,
covering both required and nullable variants plus UserDefined and any/lossless edge cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

ACTION NEEDED

Substrait follows the Conventional Commits
specification
for
release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@vbarua vbarua changed the title fix(core): correct type short names for binary and fixedbinary fix(core): correct type short names for binary and fixedbinary Apr 30, 2026
Arguments.of(c.struct(c.I32), "struct"),
Arguments.of(c.list(c.I32), "list"),
Arguments.of(c.map(c.I32, c.I64), "map")));
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not the most interesting test in world, but wanted to have something in the harness that would catch changes to these mappings.

@vbarua vbarua marked this pull request as ready for review April 30, 2026 23:08
@vbarua vbarua force-pushed the vbarua/short-type-name-fixes branch from 4b99558 to b63e4a3 Compare May 1, 2026 15:08
Copy link
Copy Markdown
Member

@bvolpato bvolpato left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Victor!

nit: adding an integration test to the function-signature key generation path itself could be a good follow-up, instead of just focusing on the unit here

@vbarua vbarua merged commit 48dcd3f into main May 1, 2026
11 checks passed
@vbarua vbarua deleted the vbarua/short-type-name-fixes branch May 1, 2026 18:31
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.

2 participants