pub(crate) fn prefix_fields(tree: &NativeTree) -> Result<Vec<FieldSpec>>Expand description
The field names of the raw series the prefix reads, in source order.
Read off the tree’s own raw input node, which is the one authority on what the prefix is
compiled against: the root is already evaluated on the statement’s grid, so its fields are the
statement’s value columns rather than the raw ones a by(...) clause would name. The prefix is
one series at a time and the tree reads exactly one source, so the first raw input answers for
all of them.