Conversation
|
Thank you! |
joshtemple
left a comment
There was a problem hiding this comment.
A few high-level questions:
-
Aside from allowing measures to flow through into the LookML tree, is there anything else special happening to test them?
-
I'm not seeing any tests specifically for measures, just the refactored existing tests.
-
Should we expect performance to be impacted by including aggregates in the Explore-level queries?
| "line_number": line_number, | ||
| "lookml_url": lookml_url, | ||
| "dimension": field_name, | ||
| "field": field_name, |
There was a problem hiding this comment.
Noting that this is basically a breaking change as far as the API is concerned.
There was a problem hiding this comment.
Yeah, we would need to release this with a corresponding change in the app/UI. It will likely need to account for both dimension and field, given old runs will have the old key.
|
|
||
| def __eq__(self, other): | ||
| if not isinstance(other, Dimension): | ||
| if not isinstance(other, LookMlField): |
There was a problem hiding this comment.
If a dimension LookMlField and measure LookMlField are compared, how are they marked as different? Is it the type attribute?
There was a problem hiding this comment.
Yeah, type should do it in most cases, but your question has made me realise that technically a dimension and a measure could both be of type number and have the same name. It's a very narrow case, but could happen.
There is a boolean measure field on the fields JSON payload, so we could easily add that to both the model and the eq function. Does that work for you?
|
c605e59 to
69081ef
Compare
|
As far as measure-specific tests go, we may want to make sure all measure types are supported, since we don't have all of them defined on our |
Co-authored-by: Josh Temple <8672171+joshtemple@users.noreply.github.com>
0d2852b to
21091a4
Compare
Change description
Adding support for measures in the SQL validator
Type of change
Related issues
Closes #368
Checklists
Security
Code review