Skip to content

LookML view file shared between multiple models, with same connection, gets ingested only once #12043

@k7ragav

Description

@k7ragav

Describe the bug
View files that share model files. So the same view file can be used when run from 2 different models( let's say model_1 and model_2 ). Also, these models have the same connection as well. And if view_naming_pattern is set to "{project}.{model}.view.{name}" .
Expected behaviour is to have the view file be ingested twice for each model. So the URN pattern would be {project}.{model_1}.view.{name} and {project}.{model_2}.view.{name}However, the view file gets ingested only once. So only {project}.{model_1}.view.{name} . It is due to the fact that they share the same connection. This behavior is not seen if the different models belong to different connections . Then it gets ingested as expected.

Due to this bug, there is as expected no lineage between the Explore and View file

To Reproduce
Steps to reproduce the behavior:

  1. Ingest a view file that is share between models belonging to the same connection. Set view_naming_pattern to "{project}.{model}.view.{name}" .
  2. Go to the container of the different models, you will see the view being only present in one of the model containers, while absent in the other

Expected behavior
The view file needs to be ingested, with the model names specified in the URN, even though they share the same connection

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • version 0.14.0.2

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions