You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
@@ -31,7 +31,7 @@ function generateSurrogateKey(id_array, warehouse) {
31
31
postgres: `md5(concat(${id_array.map((id)=>(`cast(${id} as ${typeString()})`)).join(`,`)}))`,
32
32
snowflake: `md5(concat(${id_array.map((id)=>(`cast(${id} as ${typeString()})`)).join(`,`)}))`,
33
33
sqldatawarehouse: `hashbytes("md5", (concat(${id_array.map((id)=>(`cast(${id} as ${typeString()})`)).join(`,`)})))`,
34
-
})[warehouse||session.config.warehouse];
34
+
})[warehouse||dataform.projectConfig.warehouse];
35
35
}
36
36
37
37
functionwindowFunction({
@@ -49,7 +49,7 @@ function windowFunction({
49
49
postgres: `${func}(${value}) over (partition by ${partition_fields} order by ${ignore_nulls ? `case when ${value} is not null then 0 else 1 end asc` : ``}${order_fields&&ignore_nulls ? `,` : ``}${order_fields}${frame_clause ? frame_clause : `rows between unbounded preceding and unbounded following`})`,
50
50
snowflake: `${func}(${value}${ignore_nulls ? `ignore nulls` : ``}) over (partition by ${partition_fields} order by ${order_fields}${frame_clause ? frame_clause : ``})`,
51
51
sqldatawarehouse: `${func}(${value}${ignore_nulls ? `ignore nulls` : ``}) over (partition by ${partition_fields} order by ${order_fields}${frame_clause ? frame_clause : ``})`,
0 commit comments