[Bug] function copyWithLatestSchema() is not correct
- Dominant language
- Java
- Stars
- 3.4k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 396
Description
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
### Paimon version
1.0.0
### Compute Engine
flink
### Minimal reproduce step
no
### What doesn't meet your expectations?
see : https://github.com/apache/paimon/blob/316fa28041bbe4db6c8eb5489d6afd561d82db9f/paimon-core/src/main/java/org/apache/paimon/table/FileStoreTable.java#L100-L101
https://github.com/apache/paimon/blob/316fa28041bbe4db6c8eb5489d6afd561d82db9f/paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java#L356-L367
```java
Map 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?
- [ ] I'm willing to submit a PR!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with copyWithLatestSchema() in paimon-core/src/main/java/org/apache/paimon/table/FileStoreTable.java around lines 100-101, then inspect AbstractFileStoreTable.java around lines 356-367. Determine whether tableSchema.options() supplies stale options; done means confirming the cause and correcting the behavior so the function uses the latest options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100