twuebi commented on code in PR #558: URL: https://github.com/apache/iceberg-go/pull/558#discussion_r2356563617
########## catalog/rest/rest.go: ########## @@ -750,27 +750,12 @@ func (r *Catalog) CreateTable(ctx context.Context, identifier table.Identifier, o(&cfg) } - freshSchema, err := iceberg.AssignFreshSchemaIDs(schema, nil) - if err != nil { - return nil, err - } - - freshPartitionSpec, err := iceberg.AssignFreshPartitionSpecIDs(cfg.PartitionSpec, schema, freshSchema) - if err != nil { - return nil, err - } - - freshSortOrder, err := table.AssignFreshSortOrderIDs(cfg.SortOrder, schema, freshSchema) - if err != nil { - return nil, err - } Review Comment: Yeah, it's just the null value of `var cfg catalog.CreateTableCfg` ruining the day ########## catalog/rest/rest.go: ########## @@ -750,27 +750,12 @@ func (r *Catalog) CreateTable(ctx context.Context, identifier table.Identifier, o(&cfg) } - freshSchema, err := iceberg.AssignFreshSchemaIDs(schema, nil) - if err != nil { - return nil, err - } - - freshPartitionSpec, err := iceberg.AssignFreshPartitionSpecIDs(cfg.PartitionSpec, schema, freshSchema) - if err != nil { - return nil, err - } - - freshSortOrder, err := table.AssignFreshSortOrderIDs(cfg.SortOrder, schema, freshSchema) - if err != nil { - return nil, err - } Review Comment: Yeah, it's just the zero value of `var cfg catalog.CreateTableCfg` ruining the day -- 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