expressions in the output namespace (having,group_by) #405
mtoy-googly-moogly
started this conversation in
What's Next: Language Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of this writing, things are a little broken.
having:
andtop: by
expressions can only reference fields in the source namespaceorder_by:
can only reference fields in the query result namespacePerhaps we should make "reference to the result namepace" something which is explicit. This raises the question, "What are the contexts in which it would be reasonable to access both the query (output) namespace and the source (input) namespace?"
Sometimes when referencing a namespace, you really can only reference aggregates, or non-aggregates from that namespace and so maybe as we formalize this, we include this "filtered namespace" notion ...
This table is not correct, but is a placeholder for a more correct table.
group_by:
definitionsaggregate:
definitionsproject:
definitionswhere:
expressionshaving:
expressionsorder_by:
expressionstop:
Nby
nameWhat is the syntax for a reference to a field in the result.
self.
and may also suggest a way to get at the namespace of a the Malloy gesture which replaces window functions.RESULT.
but using{}
to show a new namespace with different properties than the namespace before the{}
is a thing in Malloy.Beta Was this translation helpful? Give feedback.
All reactions