feat(java): propagate source_task_size to generated Java clients#356
Merged
brendanclement merged 2 commits intoJun 12, 2026
Merged
Conversation
PR lance-format#355 added the optional source_task_size field to RefreshMaterializedViewRequest in the spec and regenerated only the Python (urllib3) and Rust (reqwest) clients. The three generated Java modules (apache-client, async-client, springboot-server) were left out, so the field was silently dropped on the Java REST path even though the spec, the Java-derived model doc, and the other language clients all carry it. Regenerated the Java modules from the spec via `make gen-java` to add the field and its accessors. Compiles and passes checkstyle/spotless. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The source_task_size description in spec.yaml is a multi-line block scalar, so openapi-generator folds it with a trailing space (same as the sibling output_limit/manifest fields). PR lance-format#355 committed Rust files with that trailing space stripped, so the `Check no difference in codegen` CI step failed once full `make gen` regenerated them. Regenerated via `make gen-rust` so the committed files match canonical generator output. No semantic change — whitespace only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Context
#355 added the optional
source_task_sizefield toRefreshMaterializedViewRequestin the spec and regenerated only the Python (urllib3) and Rust (reqwest) clients.The three generated Java modules were left out:
lance-namespace-apache-clientlance-namespace-async-clientlance-namespace-springboot-serverAs a result the field was silently dropped on the Java REST path, even though
docs/src/spec.yaml, the Java-derived model doc (docs/src/namespace/operations/models/RefreshMaterializedViewRequest.md), and the Python/Rust clients all carry it. (Per CLAUDE.md the model doc is generated from the Java Apache client, so the doc and the Java source had drifted apart.)Change
Regenerated the Java modules from the spec via
make gen-java, addingsourceTaskSizeand its accessors to all threeRefreshMaterializedViewRequestmodels (plus the embeddedapi/openapi.yamlcopies). No hand edits — pure generator output.Test plan
make gen-java→ BUILD SUCCESS./mvnw compile -pl lance-namespace-apache-client,lance-namespace-async-client,lance-namespace-springboot-server -am→ OK./mvnw checkstyle:check spotless:checkon the same modules → exit 0🤖 Generated with Claude Code