Skip to content

feat(java): propagate source_task_size to generated Java clients#356

Merged
brendanclement merged 2 commits into
lance-format:mainfrom
justinrmiller:fix/java-source-task-size
Jun 12, 2026
Merged

feat(java): propagate source_task_size to generated Java clients#356
brendanclement merged 2 commits into
lance-format:mainfrom
justinrmiller:fix/java-source-task-size

Conversation

@justinrmiller

Copy link
Copy Markdown
Contributor

Context

#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 were left out:

  • lance-namespace-apache-client
  • lance-namespace-async-client
  • lance-namespace-springboot-server

As 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, adding sourceTaskSize and its accessors to all three RefreshMaterializedViewRequest models (plus the embedded api/openapi.yaml copies). 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:check on the same modules → exit 0

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added enhancement New feature or request java Java features labels Jun 12, 2026
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>
@github-actions github-actions Bot added the rust Rust features label Jun 12, 2026
@brendanclement brendanclement merged commit f5ea043 into lance-format:main Jun 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Java features rust Rust features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants