laskoviymishka commented on code in PR #2612:
URL: https://github.com/apache/iceberg-go/pull/2612#discussion_r4629204762
##########
catalog/hive/hive.go:
##########
@@ -228,7 +227,7 @@ func (c *Catalog) CreateTable(ctx context.Context,
identifier table.Identifier,
return nil, fmt.Errorf("%w: %s.%s",
catalog.ErrViewAlreadyExists, database, tableName)
}
- staged, err := internal.CreateStagedTable(ctx, c.opts.props,
c.LoadNamespaceProperties, identifier, schema, opts...)
+ staged, err := internal.CreateStagedTable(ctx, c.opts.props,
c.LoadNamespaceProperties, identifier, schema, c.opts.ioRegistry, opts...)
Review Comment:
Should the Hive registry tests cover `CreateTable` too? This
[call](https://github.com/apache/iceberg-go/blob/f7a4d8c222f94727bc4cdcf8f9fbb973fb4cd4e0/catalog/hive/hive.go#L230)
passes `c.opts.ioRegistry` to `CreateStagedTable`, but every `cat.CreateTable`
in the Hive tests runs on a catalog without a registry, so only the shared
helper test exercises it. Glue and SQL both run `cat.CreateTable` against a
scoped registry.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]