the-other-tim-brown commented on code in PR #637:
URL: https://github.com/apache/incubator-xtable/pull/637#discussion_r1943397479


##########
xtable-aws/src/main/java/org/apache/xtable/glue/GlueCatalogTableBuilderFactory.java:
##########
@@ -18,25 +18,67 @@
  
 package org.apache.xtable.glue;
 
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
 import org.apache.hadoop.conf.Configuration;
 
+import com.google.common.annotations.VisibleForTesting;
+
 import org.apache.xtable.catalog.CatalogTableBuilder;
 import org.apache.xtable.exception.NotSupportedException;
+import org.apache.xtable.glue.table.DeltaGlueCatalogTableBuilder;
 import org.apache.xtable.glue.table.IcebergGlueCatalogTableBuilder;
+import org.apache.xtable.model.InternalTable;
 import org.apache.xtable.model.storage.TableFormat;
 
+import software.amazon.awssdk.services.glue.model.Column;
 import software.amazon.awssdk.services.glue.model.Table;
 import software.amazon.awssdk.services.glue.model.TableInput;
 
-class GlueCatalogTableBuilderFactory {
+public class GlueCatalogTableBuilderFactory {
 
   static CatalogTableBuilder<TableInput, Table> getInstance(
       String tableFormat, Configuration configuration) {
     switch (tableFormat) {
       case TableFormat.ICEBERG:
         return new IcebergGlueCatalogTableBuilder(configuration);
+      case TableFormat.DELTA:
+        return new DeltaGlueCatalogTableBuilder();
       default:
         throw new NotSupportedException("Unsupported table format: " + 
tableFormat);
     }
   }
+
+  @VisibleForTesting
+  public static List<Column> getNonPartitionColumns(

Review Comment:
   If they are unrelated to this factory, then they do not belong here. The 
methods look like they only depend on classes in core so why can't we move it 
there?



-- 
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]

Reply via email to