presto-main/src/main/java/io/prestosql/sql/planner/StageExecutionPlan.java/StageExecutionPlan/getFieldNames
class StageExecutionPlan:    public List<String> getFieldNames()
    {
        checkState(fieldNames.isPresent(), "cannot get field names from non-output stage");
        return fieldNames.get();
    }