malloy icon indicating copy to clipboard operation
malloy copied to clipboard

null value for boolean.

Open lloydtabb opened this issue 2 years ago • 3 comments

I thought we had all these but this code returns a null value for a boolean...

source: stories is table('bigquery-public-data.hacker_news.full') {
  dimension:
    threshold is 10
    is_interesting is score >= threshold

  query: interesting is {
    group_by: is_interesting
    aggregate: c is count()
  }
}

lloydtabb avatar Nov 11 '22 15:11 lloydtabb

hmm ... i think maybe we didn't check for >= or <=

mtoy-googly-moogly avatar Nov 11 '22 15:11 mtoy-googly-moogly

I'm not sure. It may be that we only need to do this when it is being returned as a dimension in a result not as a partial expression, but it will take me a bit to reload my brain on that.

lloydtabb avatar Nov 11 '22 16:11 lloydtabb

I've unassigned myself. @lloydtabb feel free to re-assign back to me if you decide this is a bug

mtoy-googly-moogly avatar Sep 21 '23 21:09 mtoy-googly-moogly