Skip to content

Commit

Permalink
fix(lkml): bump lkml version up to 1.1.2 to support sql_preamble expr…
Browse files Browse the repository at this point in the history
…ession (#3757)
  • Loading branch information
hyunminch authored Dec 21, 2021
1 parent 77e3641 commit e76d40b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metadata-ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def get_long_description():
"kafka-connect": sql_common | {"requests", "JPype1"},
"ldap": {"python-ldap>=2.4"},
"looker": looker_common,
"lookml": looker_common | {"lkml>=1.1.0", "sql-metadata==2.2.2"},
# lkml>=1.1.2 is required to support the sql_preamble expression in LookML
"lookml": looker_common | {"lkml>=1.1.2", "sql-metadata==2.2.2"},
"metabase": {"requests"},
"mode": {"requests", "sqllineage"},
"mongodb": {"pymongo>=3.11"},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
connection: "my_connection"

explore: included_sql_preamble {
sql_preamble:
CREATE TEMP FUNCTION CONCAT_VERBOSE(a STRING, b STRING)
RETURNS STRING AS (
CONCAT(a, b)
);
;;
}

0 comments on commit e76d40b

Please sign in to comment.