private static boolean hiveEngineEnabled(TableMetadata metadata, Configuration conf) {
    if (metadata.properties().get(TableProperties.ENGINE_HIVE_ENABLED) != null) {
      // We know that the property is set, so default value will not be used,
      return metadata.propertyAsBoolean(TableProperties.ENGINE_HIVE_ENABLED, false);
    }

    return conf.getBoolean(
        ConfigProperties.ENGINE_HIVE_ENABLED, true);
  }
Returns if the hive engine related values should be enabled on the table, or not.
<p>
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
{@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 conf The hive configuration to use
@return if the hive engine related values should be enabled or not
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java