public StructType schema() {
        return StructType.fromAttributes(output());
    }
Attributes that are referenced by expressions but not provided by this nodes children.
Subclasses should override this method if they produce attributes internally as it is used by
assertions designed to prevent the construction of invalid plans.
indexr-query-opt/src/main/java/io/indexr/query/plan/QueryPlan.java