Skip to content

feat(bigtable): Adding support to schema bundles#12516

Merged
bhshkh merged 10 commits intogoogleapis:mainfrom
ron-gal:schema_bundle
Jul 10, 2025
Merged

feat(bigtable): Adding support to schema bundles#12516
bhshkh merged 10 commits intogoogleapis:mainfrom
ron-gal:schema_bundle

Conversation

@ron-gal
Copy link
Contributor

@ron-gal ron-gal commented Jun 30, 2025

No description provided.

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Jun 30, 2025
@ron-gal ron-gal marked this pull request as ready for review June 30, 2025 19:11
@ron-gal ron-gal requested review from a team June 30, 2025 19:11
@bhshkh bhshkh added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 30, 2025
@ron-gal ron-gal removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 7, 2025
}

// UpdateSchemaBundle updates a schema bundle in a table according to the given configuration.
func (ac *AdminClient) UpdateSchemaBundle(ctx context.Context, conf UpdateSchemaBundleConf) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when there are multiple fields that can be updated? How will UpdateSchemaBundleFromConf know which fields from SchemaBundleConf need to be included in update request? How will it differentiate between null and unset ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If file\slice is empty, we don't need to update it (currently it's kinda weird, as it's the only field that can change). In the future if we have more we will need to make sense of each field - what is the best way to know it should not be updated. If push comes to shove, we can allow the future user to set the update field mask, or maybe make distinct functions per field (like we have for table: UpdateTableWithChangeStream, UpdateTableWithDeletionProtection, UpdateTableDisableAutomatedBackupPolicy...)

@bhshkh bhshkh self-assigned this Jul 9, 2025
ron-gal and others added 4 commits July 9, 2025 10:15
Co-authored-by: Baha Aiman <bahaaiman@google.com>
@ron-gal ron-gal requested a review from bhshkh July 9, 2025 15:46
@bhshkh bhshkh enabled auto-merge (squash) July 10, 2025 00:04
@bhshkh bhshkh merged commit 688eb13 into googleapis:main Jul 10, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

2 participants