Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
k7ragav opened this issue Dec 5, 2024 · 0 comments
Labels
bug Bug report

Comments

@k7ragav
Copy link
Contributor

k7ragav commented Dec 5, 2024

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.

@k7ragav k7ragav added the bug Bug report label Dec 5, 2024
@k7ragav k7ragav changed the title LookML view file shared between multiple models gets ingested only once; particularly 'model' specified in view_naming_pattern LookML view file shared between multiple models, with same connection, gets ingested only once Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

1 participant