Repository navigation
fix(catalog/rest): Nessie CreateTable - #308
Conversation
|
The Iceberg REST spec is ambiguous there. |
|
@snazy Do you know if any other REST implementations have an issue with providing |
IDK - but it would surprise me if not, because, as I mentioned, a default value isn't defined, so impls would have to guess (wrong) |
|
Hi @zeroshade, i have added RenameTable Fix too as discussed |
|
@shubham-tomar you forgot to update the unit tests with the changed field names for RenameTable 😄 |
|
My Bad, updated the PR |
I am using Nessie as a catalog, while creating table i was getting below error
When i checked nessie logs, i found this error
The root cause is:
In the Go library's struct definition, StageCreate is marked as optional with omitempty
When false is set as the value, the JSON marshaler sees it as the zero value for bool and due to omitempty, it omits the field entirely from the JSON
However, the Nessie REST API requires this field to be explicitly set, even if it's false
This small change fixes the issue