substrait icon indicating copy to clipboard operation
substrait copied to clipboard

Add output schema in plan node

Open lgbo-ustc opened this issue 1 year ago • 2 comments

There is only names in RelRoot. But we need a exact definition of the output schema in some cases.

What about adding a new field of struct to define the output schema in RelRoot ?

message RelRoot {
  // A relation
  Rel input = 1;
  // Field names in depth-first order
  repeated string names = 2;
  Type.Struct output_schema = 3;
}

lgbo-ustc avatar Jun 15 '23 11:06 lgbo-ustc