Queries in Beta Malloy #32
Closed
mtoy-googly-moogly
started this conversation in
What's Next: Language Proposals
Replies: 1 comment
-
no longer discussing, 4.0 is the end of this train |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
DO NOT COMMENT YET -- I am beginning to write this up, I will post to the malloy channel when it is ready for review.
This spun out of #29 into its own discussion.
At the. most general, we need to parse (roughly) these sentences ...
We already know in beta-malloy that refinements look like
{
propertyList}
.The Solutions
Arrow Proposal
This is the proposal currently in beta-Malloy. There are a number of objections to this which suggest other solutions.
There is an operator
->
which takes an explore def on the left hand side and a query def on the right hand side ...-- run a query
flights->by_carrier
-- refine the explore, and refine the query
flights { refine for flights } -> by_carrier { refine for by_carrier }
-- define a new explore based on query
explore: refine_by_carrier is (flights->by_carrier) { primary_key: carrier_name }
Dot / Paren Proposal
()
is optional on an explore which has no parameters()
is NOT optional on a query which has no parametersBeta Was this translation helpful? Give feedback.
All reactions