You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/06/28 07:40:45 UTC

[GitHub] [incubator-iceberg] aokolnychyi commented on a change in pull request #240: Add HiveCatalog implementation

aokolnychyi commented on a change in pull request #240: Add HiveCatalog implementation
URL: https://github.com/apache/incubator-iceberg/pull/240#discussion_r298484797
 
 

 ##########
 File path: hive/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java
 ##########
 @@ -134,10 +136,11 @@ public void commit(TableMetadata base, TableMetadata metadata) {
                 Integer.MAX_VALUE,
                 storageDescriptor(metadata),
                 Collections.emptyList(),
-                new HashMap<>(),
+                Maps.newHashMap(),
                 null,
                 null,
-                ICEBERG_TABLE_TYPE_VALUE);
+            TableType.EXTERNAL_TABLE.toString());
+        tbl.getParameters().put("EXTERNAL", "TRUE"); // using the external table type also requires this
 
 Review comment:
   @rdblue yeah, we had this change internally already to be compatible with the Spark external catalog in 2.4. Thanks!

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org