presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/systemtables/ShardMetadataRecordCursor.java/ShardMetadataRecordCursor/getColumnIndex
class ShardMetadataRecordCursor:    private static int getColumnIndex(ConnectorTableMetadata tableMetadata, String columnName)
    {
        List<ColumnMetadata> columns = tableMetadata.getColumns();
        for (int i = 0; i < columns.size(); i++) {
            if (columns.get(i).getName().equals(columnName)) {
                return i;
            }
        }
        throw new IllegalArgumentException(format("Column %s not found", columnName));
    }