public PrestoColumnHandle columnHandle()

in paimon-presto-common/src/main/java/org/apache/paimon/presto/PrestoTableHandle.java [135:143]


    public PrestoColumnHandle columnHandle(String field, TypeManager typeManager) {
        List<String> fieldNames = FieldNameUtils.fieldNames(table().rowType());
        int index = fieldNames.indexOf(field);
        if (index == -1) {
            throw new RuntimeException(
                    String.format("Cannot find field %s in schema %s", field, fieldNames));
        }
        return PrestoColumnHandle.create(field, table().rowType().getTypeAt(index), typeManager);
    }