View the original community article here
Last tested: Jan 21, 2019
For more information on Extends and how to reuse your LookML code, review the documentation here.
- But how does Extends work?
- What if there is the same parameter on my new file?
At a high level, Looker performs a object-by-object comparison and the new file takes precedence if the same object exists on both files. The steps are:
COPY: A copy is made of the defined LookML object that is being extended
MERGE: The copy is merged with the defined LookML object that is doing the extending
RESOLVE CONFLICTS: If a LookML object is defined in both places, the object doing the extending is used
FINISH: The new LookML object can be used within the model just like any other LookML object