WN 0002: Parameters in Malloy #1409
Replies: 3 comments
-
+1 for support for Abstract views, etc. This use case especially I find myself hitting a lot while writing Malloy https://github.com/malloydata/whatsnext/blob/main/wns/WN-0002/wn-0002.md#abstract-views-let-us-build-reusable-query-shapes Typically in a model, I will land on an interesting view and then want to look at that same view shape, but with different dimensions, measures, or some other parameter. Right now the only solution is to copy/paste and manually change values. |
Beta Was this translation helpful? Give feedback.
-
Here's the argument against looker string filters. Malloy already has a facility for writing expressions which apply a series of tests to a value, it is wrong to re-invent something that exists. A abstract thingy which takes a filter should be taking a
If we decide we want looker filters, first we need to make them work inthe language ... again just making up syntax
Then looker filters would also work in
|
Beta Was this translation helpful? Give feedback.
-
This would be a great add-on and would simplify lots of unclear workarounds. In particular, I am using now a virtual source to define a reference date that I inner join with other sources filter them wrt that reference date. Being able to use a globally defined parameter would make it more clear to read and simple to implement. |
Beta Was this translation helpful? Give feedback.
-
See current Proposal at: https://github.com/malloydata/whatsnext/blob/main/wns/WN-0002/wn-0002.md
Beta Was this translation helpful? Give feedback.
All reactions