Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output schema in plan node #509

Open
lgbo-ustc opened this issue Jun 15, 2023 · 2 comments
Open

Add output schema in plan node #509

lgbo-ustc opened this issue Jun 15, 2023 · 2 comments

Comments

@lgbo-ustc
Copy link

lgbo-ustc commented Jun 15, 2023

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;
}
@EpsilonPrime
Copy link
Member

Could you explain more about the cases where you need this? From what I see of the specification the intention is that the final schema can be computed by following the output mapping of each step.

@westonpace
Copy link
Member

I think adding names and types throughout would be a useful hint or extension. However, as @EpsilonPrime pointed out, one of our goals is to avoid repeating information that can be inferred so that we can keep plans reasonably compact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants