public static boolean getBooleanEnvProp(EnvironmentContext envContext, String key) {
    return Optional.ofNullable(envContext)
            .map(EnvironmentContext::getProperties)
            .map(props -> props.getOrDefault(key, StatsSetupConst.FALSE))
            .map(Boolean::parseBoolean)
            .orElse(false);
  }
This method is invalid for MM and ACID tables unless fileStatus comes from AcidUtils.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreServerUtils.java