Search before asking
Paimon version
1.0.0
Compute Engine
flink
Minimal reproduce step
no
What doesn't meet your expectations?
see :
|
/** TODO: this method is weird, old options will overwrite new options. */ |
|
FileStoreTable copyWithLatestSchema(); |
|
public FileStoreTable copyWithLatestSchema() { |
|
Optional<TableSchema> optionalLatestSchema = schemaManager().latest(); |
|
if (optionalLatestSchema.isPresent()) { |
|
Map<String, String> options = tableSchema.options(); |
|
TableSchema newTableSchema = optionalLatestSchema.get(); |
|
newTableSchema = newTableSchema.copy(options); |
|
SchemaValidation.validateTableSchema(newTableSchema); |
|
return copy(newTableSchema); |
|
} else { |
|
return this; |
|
} |
|
} |
Map<String, String> options = tableSchema.options();
this line get old options,Is it because of this reason that we did not get the latest options?
Anything else?
No response
Are you willing to submit a PR?
Search before asking
Paimon version
1.0.0
Compute Engine
flink
Minimal reproduce step
no
What doesn't meet your expectations?
see :
paimon/paimon-core/src/main/java/org/apache/paimon/table/FileStoreTable.java
Lines 100 to 101 in 316fa28
paimon/paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java
Lines 356 to 367 in 316fa28
this line get old options,Is it because of this reason that we did not get the latest options?
Anything else?
No response
Are you willing to submit a PR?