feat: add backfill columns and refresh materialized view operations#335
Merged
Merged
Conversation
…fill/refresh endpoints
Align add_columns and alter_columns schemas with phalanx (sophon) OpenAPI spec:
- Remove identity/context/id from requests, transaction_id from responses
- Rename NewColumnTransform to AddColumnsEntry
- Adopt type array nullable style (OpenAPI 3.1)
Add new async job endpoints:
- POST /v1/table/{id}/backfill_column (AlterTableBackfillColumns)
- POST /v1/table/{id}/refresh (RefreshMaterializedView)
Co-Authored-By: Claude <noreply@anthropic.com>
- Rename where_clause to where (matches client field name) - Add all PhalanxClient BackfillRequest fields: intra_applier_concurrency, min_checkpoint_size, max_checkpoint_size, batch_checkpoint_flush_interval_seconds, read_version, task_size, num_frags, checkpoint_size, commit_granularity Co-Authored-By: Claude <noreply@anthropic.com>
Regenerate the Rust REST client to include: - Updated AddColumnsEntry (renamed from NewColumnTransform) - Stripped identity/context/id from requests, transaction_id from responses - New AlterTableBackfillColumnsRequest/Response models and API function - New RefreshMaterializedViewRequest/Response models and API function - Added serde_with dependency for nullable field serialization Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Run `make build` to regenerate Java (apache, async, springboot), Python, Rust clients and operation docs. Co-Authored-By: Claude <noreply@anthropic.com>
Add alterTableBackfillColumns and refreshMaterializedView to: - Python LanceNamespace ABC - Java LanceNamespace interface (sync) - Java LanceNamespaceAsync interface (async) Co-Authored-By: Claude <noreply@anthropic.com>
- Add AlterTableBackfillColumns and RefreshMaterializedView to the operations table in docs/src/client/operations/index.md - Add corresponding HTTP endpoint entries in docs/src/rest/impl-spec.md - Fix incorrect paths for add_columns and alter_columns (was /alter/*) Co-Authored-By: Claude <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.
Summary
add_columnsandalter_columnsschemas: removeidentity,context,idfrom requests, removetransaction_idfrom responses, renameNewColumnTransformtoAddColumnsEntry, adopt OpenAPI 3.1 nullable stylePOST /v1/table/{id}/backfill_column(AlterTableBackfillColumns) — trigger async backfill job for a computed column, returns 202 with job_idPOST /v1/table/{id}/refresh(RefreshMaterializedView) — trigger async materialized view refresh, returns 202 with job_idLanceNamespaceinterfaces (Python, Java sync, Java async)Test plan
$reftargets resolve