Skip to content

Core, REST: Add support for overwrite in RegisterTableRequest#15248

Open
adutra wants to merge 1 commit intoapache:mainfrom
adutra:register-table-overwrite
Open

Core, REST: Add support for overwrite in RegisterTableRequest#15248
adutra wants to merge 1 commit intoapache:mainfrom
adutra:register-table-overwrite

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Feb 6, 2026

The "overwrite" parameter was added in #12239 to the REST spec and the Python client, but the Java RegisterTableRequest wasn't updated accordingly.

The "overwrite" parameter was added in apache#12239 to the REST spec and the Python client, but the Java RegisterTableRequest wasn't updated accordingly.
@adutra
Copy link
Contributor Author

adutra commented Feb 6, 2026

Note: there is actually no support for ovewrite in Java code. I refrained from implementing anything here since there were concerns about the right API to do so:

https://lists.apache.org/thread/b5k7vdng904zr3n3q8wv83y8l30rnd4c

So, this PR only adds support for JSON serialization, thus enabling catalogs to provide support for this feature if they have a way of doing so.

Copy link
Contributor

@singhpk234 singhpk234 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @adutra

I believe since the java based IRC servers simply reuse these parser to deserialize the response from the client, this could come handy

it would be nice to make the PR title as Add support for overwrite in RegisterTableRequest Model

.name(name)
.metadataLocation(metadataLocation)
.build();
ImmutableRegisterTableRequest.Builder builder =
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: is it possible to put them in one line if we are using var?

Copy link
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @adutra !

@flyrain
Copy link
Contributor

flyrain commented Feb 6, 2026

Hi @aihuaxu, would it be possible to include this in the coming release 1.11?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants