presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixColumnProperties.java/PhoenixColumnProperties/isPrimaryKey
class PhoenixColumnProperties:    public static boolean isPrimaryKey(ColumnMetadata col, Map<String, Object> tableProperties)
    {
        Optional<List<String>> rowkeysTableProp = getRowkeys(tableProperties);
        if (rowkeysTableProp.isPresent()) {
            return rowkeysTableProp.get().stream().anyMatch(col.getName()::equalsIgnoreCase);
        }
        Boolean isPk = (Boolean) col.getProperties().get(PRIMARY_KEY);
        return isPk != null && isPk;
    }