We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27624a6 commit 4a2a8c7Copy full SHA for 4a2a8c7
1 file changed
elementary/clients/dbt/command_line_dbt_runner.py
@@ -28,6 +28,8 @@ class DbtCommandResult:
28
29
30
class CommandLineDbtRunner(BaseDbtRunner):
31
+ _dbx_patch_applied = False
32
+
33
def __init__(
34
self,
35
project_dir: str,
@@ -52,8 +54,10 @@ def __init__(
52
54
self.raise_on_failure = raise_on_failure
53
55
self.env_vars = env_vars
56
- # Apply databricks compatibility patch for version 1.10.2
- self._apply_databricks_compatibility_patch()
57
+ # Apply databricks compatibility patch for version 1.10.2 only once
58
+ if not CommandLineDbtRunner._dbx_patch_applied:
59
+ self._apply_databricks_compatibility_patch()
60
+ CommandLineDbtRunner._dbx_patch_applied = True
61
62
if force_dbt_deps:
63
self.deps()
0 commit comments