From 12b55f3289723b288d7f8a56bb541f32e9751381 Mon Sep 17 00:00:00 2001 From: Raymond Zhang Date: Tue, 7 Dec 2021 16:14:42 -0800 Subject: [PATCH] Recorder hive table properties to align the avro.schema.literal placement contract --- .../org/apache/iceberg/hive/legacy/LegacyHiveTableUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive-metastore/src/main/java/org/apache/iceberg/hive/legacy/LegacyHiveTableUtils.java b/hive-metastore/src/main/java/org/apache/iceberg/hive/legacy/LegacyHiveTableUtils.java index 5a38fc9e2c..0256c97436 100644 --- a/hive-metastore/src/main/java/org/apache/iceberg/hive/legacy/LegacyHiveTableUtils.java +++ b/hive-metastore/src/main/java/org/apache/iceberg/hive/legacy/LegacyHiveTableUtils.java @@ -126,9 +126,9 @@ private static Type primitiveIcebergType(String hiveTypeString) { static Map getTableProperties(org.apache.hadoop.hive.metastore.api.Table table) { Map props = new HashMap<>(); - props.putAll(table.getSd().getSerdeInfo().getParameters()); props.putAll(table.getSd().getParameters()); props.putAll(table.getParameters()); + props.putAll(table.getSd().getSerdeInfo().getParameters()); return props; }