You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "zeroshade (via GitHub)" <gi...@apache.org> on 2026/01/09 20:29:16 UTC

Re: [PR] fix(catalog,manifest): handle some ignored errors [iceberg-go]

zeroshade commented on code in PR #670:
URL: https://github.com/apache/iceberg-go/pull/670#discussion_r2677535368


##########
catalog/sql/sql.go:
##########


Review Comment:
   would this `err = ` conflict with the fact that we set err inside of the anonymous function?



##########
catalog/rest/rest.go:
##########
@@ -357,10 +357,15 @@ func doPostAllowNoContent[Payload, Result any](ctx context.Context, baseURI *url
 func handleNon200(rsp *http.Response, override map[int]error) error {
 	var e errorResponse
 
-	dec := json.NewDecoder(rsp.Body)
-	dec.Decode(&struct {
-		Error *errorResponse `json:"error"`
-	}{Error: &e})

Review Comment:
   was this erroring or causing an issue somewhere? I assumed that if the body was empty then this would essentially be a no-op and nothing would happen.



-- 
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-unsubscribe@iceberg.apache.org

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


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