public static Map<String, String> getTableProperties(Table table) {
        Map<String, String> tblProps = new HashMap<>(table.getParameters());
        Optional.ofNullable(table.getSd().getSerdeInfo().getParameters())
            .ifPresent(tblProps::putAll);
        return tblProps;
    }
@param table the HMS table
@return a map of table properties combined with the serde properties, if any
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/HiveCustomStorageHandlerUtils.java