Skip to content

fix and simplify support for CTEs in DDL statements for InterSystems #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

bdeboe
Copy link
Contributor

@bdeboe bdeboe commented Apr 4, 2025

This change simplifies the rewrite rules for DDL statements (including implicit through SELECT .. INTO ..) that include CTEs. Previously, these were rewritten into separate statements to create temp tables, but ended up with malformed statements for some complex SELECT .. INTO .. statements produced by Achilles.
We now found how we can stick to the existing CTEs by proper placement in the CTAS structure.

The change includes a few unit tests on sample queries in this case.

Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.74%. Comparing base (8af04ab) to head (0c6f068).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #384   +/-   ##
========================================
  Coverage    79.74%   79.74%           
========================================
  Files            5        5           
  Lines          395      395           
========================================
  Hits           315      315           
  Misses          80       80           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@schuemie schuemie changed the base branch from main to develop April 8, 2025 06:03
@schuemie schuemie merged commit 16d0dd0 into OHDSI:develop Apr 8, 2025
6 checks passed
@schuemie
Copy link
Member

schuemie commented Apr 8, 2025

Thanks!

Next time, would you mind targeting the develop branch? Main is for the latest released version only

@bdeboe
Copy link
Contributor Author

bdeboe commented Apr 8, 2025

right, will do!

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.

2 participants