nastra commented on code in PR #173: URL: https://github.com/apache/iceberg-go/pull/173#discussion_r1804177804
########## catalog/glue.go: ########## @@ -122,33 +149,93 @@ func (c *GlueCatalog) LoadTable(ctx context.Context, identifier table.Identifier return icebergTable, nil } -func (c *GlueCatalog) CatalogType() CatalogType { - return Glue -} - +// DropTable deletes an Iceberg table from the Glue catalog. func (c *GlueCatalog) DropTable(ctx context.Context, identifier table.Identifier) error { - return fmt.Errorf("%w: [Glue Catalog] drop table", iceberg.ErrNotImplemented) + database, tableName, err := identifierToGlueTable(identifier) + if err != nil { + return err + } + + // Check if the table exists and is an Iceberg table. + _, err = c.getTable(ctx, database, tableName) + if err != nil { + return err + } + + params := &glue.DeleteTableInput{ Review Comment: a glue catalog id is used in pyiceberg and in the java implementation, so I would have assumed that we're using it for the go client too -- 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