Looker 4.22.18
Here is a paraphrase of the error I am getting:
A LookML model issue prevented this query from running.
Variable not found “min_date”.
company/very_complex_table_that_uses_parameters_to_speed_up_joins.view.lookml:30
BEGIN SETUP
include: very_complex_table_that_uses_parameters_to_speed_up_joins.view.lookml
view: grouped_complex_table_that_is_needed_to_run_notified_queries
view_label: ‘’
derived_table:
sql: |
select blah… from
(select blah… from
(select blah from
${very_complex_table_that_uses_parameters_to_speed_up_joins.SQL_TABLE_NAME}
)
) a join (select blah … from …) b
END SETUP
The problem is that the parameter min_date exists in the underlying table and has a default value, and looks based on that table run fine. But when I look at the SQL code that looker generates for the lookml that include the complex table, I see {%parameter min_date%}. Adding a parameter min_date parameter into the new lookml doesn’t seem to help.
This seems like a bug, any help on resolving this would be much appreciated