fix(lkml): bump lkml version up to 1.1.2 to support sql_preamble expression (#3757)

This commit is contained in:
Hyun Min Choi 2021-12-22 05:13:13 +09:00 committed by GitHub
parent 77e3641a50
commit e76d40b57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -111,7 +111,8 @@ plugins: Dict[str, Set[str]] = {
"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"},

View File

@ -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)
);
;;
}