In new LookML, the vast majority of parameters will be your old familiar friends. The new LookML IDE shows you the available parameters so you’ll be able to easily find the parameter you want. You also can learn more about parameters you haven’t used before.
In the process, you may discover some parameters that existed in old LookML but you don’t recognize. In some cases, we hadn’t documented them – but we’re working on it! Only a few parameters are replacements for old LookML parameters.
The rest of this article lists:
- the parameter changes in new LookML
- the parameters that were available (but undocumented) in old LookML
Field-level Parameters and Types
These parameters are replaced by new parameters:
sql_case
is replaced bycase
&when
map_layer
is replaced bymap_layer_name
This parameter has stricter validation:
filter
is no longer valid in a measure – you must usefilters
instead, one for each filter you want to specify
These parameters existed in old LookML but were undocumented:
default_value
fanout_on
filter
field is now documented and field parameters now mention if they can be used byfilter
fields.
These measure types just have one way to say them now:
- In old LookML you could use
avg
oraverage
but in new LookML you should useaverage
- In old LookML you could use
avg_distinct
oraverage_distinct
but in new LookML you should useaverage_distinct
View-level Parameters
This parameter is no longer needed in new LookML:
fields
is no longer needed – just start defining individualdimension
,measure
,dimension_group
, orfilter
parameters
This parameter was replaced:
Explore-level and Join-level Parameters
This parameter is no longer needed in new LookML:
This parameter was replaced by a new parameter in new LookML:
This parameter was replaced by another parameter in old LookML so is not available in new LookML:
These parameters existed in old LookML but were undocumented:
Model-level Parameters
These parameters were replaced in new LookML:
map_layers
is replaced bymap_layer
value_formats
is replaced bynamed_value_format
This parameter has an additional use in new LookML:
includes
is now also used when referring to an object defined in another file. For example, you now add aninclude
in a view file when extending or referring to a field declared in another view file.
These parameters were deprecated in old LookML so are not available in new LookML:
Punctuation Differences
Here’s differences you’ll see but no worries – the IDE helps fill in the punctuation.
- You don’t need to worry about indentation and hyphens anymore! You enclose a parameter’s sub-parameters by curly braces.
- Use double semicolons (;😉 after code blocks. You don’t need to use the pipe symbol ( | ) and you can use as many lines as you like.
- All patterns that used to start with a field name now start with a parameter.
- Whitespace no longer matters.
Value Differences
Here’s differences you’ll see but no worries – the IDE helps you get it right.
- No more
true
orfalse
– useyes
andno
. - Strings use doublequotes (") and are required in more places.
- Almost everything is case-sensitive.
Related Info
For related info, check out these articles: