Skip to content

fix(extensions): expose top-level metadata in YAML extension files#170

Merged
tokoko merged 1 commit into
substrait-io:mainfrom
nielspardon:fix/expose-top-level-extension-metadata
Jun 11, 2026
Merged

fix(extensions): expose top-level metadata in YAML extension files#170
tokoko merged 1 commit into
substrait-io:mainfrom
nielspardon:fix/expose-top-level-extension-metadata

Conversation

@nielspardon

@nielspardon nielspardon commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

build_simple_extensions populated metadata for functions and types but
silently dropped the file-level metadata field, so it was not available
at runtime. This completes the metadata exposure work started in #168.

  • Pass metadata through to SimpleExtensions.
  • Add a test module covering metadata exposure at the file, function,
    and type levels, plus the default-None case.

Implementation-level (Impl/Impl1/Impl2) and TypeVariation schema classes
have no metadata field, so there is nothing to expose there.

Testing

  • New tests/test_simple_extension_utils.py — 2 passed.
  • Existing tests/extension_registry/ suite — 88 passed, no regressions.

Fixes #149

🤖 Generated with Claude Code

build_simple_extensions populated metadata for functions and types but
silently dropped the file-level metadata field, so it was not available
at runtime. Pass it through and add tests covering metadata exposure at
the file, function, and type levels.

Fixes substrait-io#149

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

This comment was marked as resolved.

@tokoko tokoko merged commit 6e6b956 into substrait-io:main Jun 11, 2026
20 of 21 checks passed
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.

Handle metadata in YAML extension files

2 participants