rdblue commented on issue #589: [WIP] Extend metadata with SortOrder URL: https://github.com/apache/incubator-iceberg/pull/589#issuecomment-552240553 > Avoid major changes in the Catalog API Yeah, this is getting large. Maybe we should switch to a builder pattern for table creation as well, like this: ```java catalog.newTable(TableIdentifier.of("db", "table")) .addColumn("id", IntegerType.get()) .addColumn("ts", TimestampType.withZone()) .addColumn("data", StringType.get()) .partitionBy(day("ts"), bucket("id", 16)) .orderBy(day("ts"), bucket("id", 16), identity("id")) .location("s3://bucket/warehouse/db.db/table") .create() ``` We could use actions `create`, `createTransation`, `replaceTransaction`, and `createOrReplaceTransaction` instead of separate methods.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
