Skip to content

Commit c6b6a46

Browse files
authored
Merge pull request #6 from cube-js/fix/cube-not-found
Fix Cube not found in explores join path
2 parents b637d08 + 89b86b7 commit c6b6a46

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lkml2cube/parser/explores.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def generate_cube_joins(cube_def, lookml_model):
7979
cube_def['cubes'].append(cube)
8080
else:
8181
cube = get_cube_from_cube_def(cube_def, cube_right)
82+
if not cube:
83+
typer.echo(f'Cube referenced in explores not found: {join_element["name"]}')
84+
continue
8285

8386
join_condition = join_element['sql_on']
8487

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "lkml2cube"
4-
version = "0.2.0"
4+
version = "0.2.1"
55
description = "Looker ML to Cube converter"
66
authors = [
77
{name = "Paco Valdez", email = "[email protected]"},

0 commit comments

Comments
 (0)