You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple sql_where in a join are allowed by the IDE validator, but it looks like only the last statement is used the SQL query. I find this to be confusing behavior. If only one will be used in the query, the validator should throw an error.
Generally, I like to stick as close to the validator as possible, but in this case, I'm okay removing sql_where from the list of plural keys and having lkml raise an error when multiple are found.
Closes#25. Multiple statements of sql_where are allowed by Looker's
validator.
However, Looker only uses the last statement in the actual SQL join.
Normally I prefer to follow the behavior of the Looker validator, but in
this case, I disagree with the way the validator works (it should raise
an error for 2 statements supplied if only 1 will be used) and will
allow lkml to raise an error when there are multiple sql_where
statements in a single join.
I've filed a bug internally about the validator's incorrect accepting of multiple sql_where definitions within the same join. The team has confirmed this is unintended and that they intend to fix. No estimate for when yet.
To my knowledge, you cannot define more than one sql_where key as part of a JOIN.
https://docs.looker.com/reference/explore-params/sql_where
This line should be deleted:
https://github.com/joshtemple/lkml/blob/master/lkml/keys.py#L35
The text was updated successfully, but these errors were encountered: