zhangdove commented on a change in pull request #1850:
URL: https://github.com/apache/iceberg/pull/1850#discussion_r532390186
##########
File path:
hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java
##########
@@ -366,20 +370,27 @@ static void validateTableIsIceberg(Table table, String
fullName) {
* The decision is made like this:
* <ol>
* <li>Table property value {@link TableProperties#ENGINE_HIVE_ENABLED}
- * <li>If the table property is not set then check the hive-site.xml
property value
+ * <li>If the table property is not set then check hive metastore
TABLE_PARAMS value
* {@link ConfigProperties#ENGINE_HIVE_ENABLED}
+ * <li>If the table property is not set and hive metastore TABLE_PARAMS is
not set
+ * then check the hive-site.xml property value{@link
ConfigProperties#ENGINE_HIVE_ENABLED}
* <li>If none of the above is enabled then use the default value {@link
TableProperties#ENGINE_HIVE_ENABLED_DEFAULT}
* </ol>
* @param metadata Table metadata to use
+ * @param parameters Hive table parameters to use
* @param conf The hive configuration to use
* @return if the hive engine related values should be enabled or not
*/
- private static boolean hiveEngineEnabled(TableMetadata metadata,
Configuration conf) {
+ private static boolean hiveEngineEnabled(TableMetadata metadata, Map<String,
String> parameters, Configuration conf) {
Review comment:
Load the hiveEngine Enabled priorities are as follows(a>b>c):
a. Table properties
b. Hive table parameters
c. System configuration
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]