Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
remove any leftover inline node before compile (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx authored Oct 23, 2023
1 parent 8b8628d commit 5f4744f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dbt_server/services/dbt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ def compile_sql(manifest, project_dir, sql_config):
# Currently this command will load project and profile from disk
# It uses the manifest passed in
try:
# remove any inline_query nodes that might be generated in previous parse
for node_name in manifest.nodes.keys():
if "inline_query" in node_name:
manifest.nodes.pop(node_name)
profile_name = get_profile_name(sql_config)
# Invoke dbtRunner to compile SQL code
# TODO skip relational cache.
Expand Down

0 comments on commit 5f4744f

Please sign in to comment.