I have run into the following situation a bunch of times, and it feels like a best practices recommendation of different approaches would be helpful.
When dealing with the problem described in the post below, and taking the second approach “Exclude the erroring field from explores”, what are the different methods of doing so?
From what I gather, there are a couple of options for doing so:
- Exclude the fields at the explore level
a. Exclude individual fields - fields: [ALL_FIELDS*, -view.field1]
b. Exclude sets - fields: [ALL_FIELDS*, -set1*] - Exclude the fields at the join level
a. Include individual fields (excluding everything else) - fields: [field1]
b. Include sets and exclude individual fields in those sets - fields: [set1*, -field1]
I know some of the syntax above is incorrect, because my LookML still isn’t validating.
- What is the correct syntax?
- In which cases does the view need to be scoped? Do sets need to be scoped to the view?
- Are there any other options I haven’t covered above?
My specific situation is that I have many fields in a single view that cause errors across many explores, so excluding sets at the explore level (1b, above) seems like the best solution, although I can’t get the syntax right.