Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix heracles 200 for spark - #2267

Merged
chrisknoll merged 2 commits into
OHDSI:masterfrom
TomWhite-MedStar:fix_heracles_200_for_spark
May 5, 2023
Merged

chrisknoll merged 2 commits into
OHDSI:masterfrom
TomWhite-MedStar:fix_heracles_200_for_spark

Conversation

@TomWhite-MedStar

Copy link
Copy Markdown
Contributor

@chrisknoll , This is further fix for #2257

The root cause may to be a "greedy" regex operator in SqlRender for Spark; but this fix ensures that the final semicolon is not trapped behind a single-line comment.

@TomWhite-MedStar

Copy link
Copy Markdown
Contributor Author

I tested the original #2257 WebAPI patch on our local instance, and it also dropped the terminal semicolon (so blended together queries 200 and 500). The attached query renders correctly in https://data.ohdsi.org/SqlDeveloper/

@chrisknoll
chrisknoll merged commit 9b109e9 into OHDSI:master May 5, 2023
@chrisknoll

Copy link
Copy Markdown
Collaborator

Thank you. The regex replaces in SqlRender is something we need to be careful about. Thanks for finding the issue and providing a fix.

konstjar pushed a commit that referenced this pull request May 5, 2023
@TomWhite-MedStar

Copy link
Copy Markdown
Contributor Author

@chrisknoll and @konstjar - I tested Full Analysis on DataBricks using this patch. The run completes without error, and all of the generated analyses behave as expected. Thanks!

konstjar pushed a commit that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants