shubham-tomar opened a new pull request, #308:
URL: https://github.com/apache/iceberg-go/pull/308

   I am using Nessie as a catalog, while creating table i was getting below 
error
   
   ```
   Failed to create table: failed to create table: WebApplicationException: 
HTTP 400 Bad Request
   ```
   
   When i checked nessie logs, i found this error
   ```
   nessie  | Caused by: 
com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot 
construct instance of 
`org.projectnessie.catalog.formats.iceberg.rest.ImmutableIcebergCreateTableRequest`,
 problem: Cannot build IcebergCreateTableRequest, some of required attributes 
are not set [stageCreate]
   ```
   
   **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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to