Variable not found "variable_name" in commented out liquid

Knowledge Drop

Last tested: Oct 24, 2018
 

Liquid being commented out in SQL by -- will still be processed as valid liquid by Looker because of the order in which Looker processes a view file.

To have liquid commented out and not used, comment it out in liquid syntax as well

{% comment %} some liquid stuff {% endcomment %}

This content is subject to limited support.                

Version history
Last update:
‎07-07-2021 01:14 PM
Updated by: