Commit 0695f07
authored
Make
# Rationale for this change
Follow-up of #3338
It would be preferable to return `None` instead of throwing
`StopIteration`.
Iceberg Java returns null if the specified version doesn't exist:
https://github.com/apache/iceberg/blob/6a737004506176a902784ec30fc4d545c1ce6997/api/src/main/java/org/apache/iceberg/view/View.java#L60-L66
> `@return` a version, or null if the ID cannot be found
## Are these changes tested?
Yes
## Are there any user-facing changes?
No, the method isn't released yet.
<!-- In the case of user-facing changes, please add the changelog label.
-->View.version return None for unknown id (#3445)1 parent 83384fe commit 0695f07
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
0 commit comments