Skip to content

Allow reusing SQL files in other queries using <<filename>> syntax#146

Merged
ValentinHerrmann merged 4 commits into
mainfrom
ValentinHerrmann/issue145
May 15, 2026
Merged

Allow reusing SQL files in other queries using <<filename>> syntax#146
ValentinHerrmann merged 4 commits into
mainfrom
ValentinHerrmann/issue145

Conversation

@ValentinHerrmann
Copy link
Copy Markdown
Owner

Refactor the VSCode configuration to utilize a virtual environment Python interpreter for tasks and launch configurations. Add functionality to include external SQL files in the user functions execution process.

Closes #145

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1922 1156 60% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 1ee666c by action🐍

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  tutorial/myapp/utils
  api_utils.py 17-23, 374-396
  tutorial/myapp/views
  api.py 213-230
Project Total  

This report was generated by python-coverage-comment-action

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

🧪 Test Results (Python 3.13)

174 tests   174 ✅  3s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 1ee666c.

♻️ This comment has been updated with latest results.


def resolve_subqueries(sql:str, username:str, max_depth:int = 20) -> str:
for i in range(max_depth):
extFiles = re.findall(r'<<([^(>>)]+?)>>', sql)
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
10.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@ValentinHerrmann ValentinHerrmann merged commit acf2ccd into main May 15, 2026
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use other SQL files as Subqueries

2 participants