chil-pavn commented on issue #231: URL: https://github.com/apache/iceberg-go/issues/231#issuecomment-2564280788
Hey @chengchengpei iceberg-go has implementations for Glue catalog. check the code [here] to create a namespace(https://github.com/apache/iceberg-go/blob/0921b84b53e3184a1867481bf1e1a22f5a059b5c/catalog/glue.go#L262). Although I could not find any example in the documentation, something like this should work. ` // Create properties map for catalog configuration props := iceberg.Properties{ "type": "glue", "region": "us-east-2", "aws.access-key-id": os.Getenv("AWS_KEY_ID"), "aws.secret-access-key": os.Getenv("AWS_SECRET_ACCESS_KEY"), "max-workers": "8", } // Create a new Glue catalog cat, err := catalog.NewGlueCatalog("MyAwsDataCatalog", props) if err != nil { panic(err) } // Create namespace if it doesn't exist ctx := context.Background() err = cat.CreateNamespace(ctx, catalog.ToRestIdentifier("lake-test"), nil) if err != nil && !errors.Is(err, catalog.ErrNamespaceAlreadyExists) { panic(err) } }` -- 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