File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
ndc-connector-snowflake/src/main/kotlin/io/hasura/snowflake Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,11 @@ object CTEQueryGenerator : BaseQueryGenerator() {
45
45
}
46
46
47
47
private fun buildCTEs (request : QueryRequest , varCTE : List <CommonTableExpression <* >> = emptyList()): WithStep {
48
- val isNativeQuery = ConnectorConfiguration .Loader .config.nativeQueries.containsKey(request.collection)
48
+ val withStep = mkNativeQueryCTEs(request)
49
+ .with (varCTE)
50
+ .with (forEachQueryLevelRecursively(request, CTEQueryGenerator ::buildCTE).distinct())
49
51
50
- return DSL .with (
51
- buildList {
52
- if (isNativeQuery) add(mkNativeQueryCTESnowflake(request))
53
- addAll(varCTE)
54
- addAll(forEachQueryLevelRecursively(request, CTEQueryGenerator ::buildCTE).distinct())
55
- }
56
- )
52
+ return withStep
57
53
}
58
54
59
55
private fun getCollectionAsjOOQName (collection : String ): Name {
You can’t perform that action at this time.
0 commit comments