Skip to content

Commit

Permalink
Only use updated schema if auto update is enabled (#26791)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolpato authored May 19, 2023
1 parent 3ca355c commit 14ba618
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ void postFlush() {
@Nullable
TableSchema updatedTableSchema =
(streamAppendClient != null) ? streamAppendClient.getUpdatedSchema() : null;
if (updatedTableSchema != null) {
if (updatedTableSchema != null && autoUpdateSchema) {
invalidateWriteStream();
appendClientInfo =
Preconditions.checkStateNotNull(getAppendClientInfo(false, updatedTableSchema));
Expand Down

0 comments on commit 14ba618

Please sign in to comment.