Skip to content

fix(rest): make data_type optional in AlterColumnsEntry#338

Merged
jackye1995 merged 1 commit into
lance-format:mainfrom
jackye1995:jack/optional-data-type
May 5, 2026
Merged

fix(rest): make data_type optional in AlterColumnsEntry#338
jackye1995 merged 1 commit into
lance-format:mainfrom
jackye1995:jack/optional-data-type

Conversation

@jackye1995
Copy link
Copy Markdown
Collaborator

Summary

Remove data_type from required in AlterColumnsEntry. UDF-only alterations only need path + virtual_column — forcing data_type causes clients to send empty/redundant values that can trigger server-side metadata issues.

Test plan

  • YAML validates
  • All clients build

UDF-only alterations (path + virtual_column) don't need data_type.
Requiring it forces clients to send an empty or redundant data_type
which can cause server-side issues (metadata wipe on alter).

Regenerate all clients.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added bug Something isn't working python Python features java Java features rust Rust features labels May 5, 2026
@jackye1995 jackye1995 merged commit a4187e0 into lance-format:main May 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java Java features python Python features rust Rust features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant