Open xitology opened 1 year ago
@anton-abushkevich or @wivern, would you know why there is special dialect specific code for spark?
@alondhe , I think you defined this class: https://github.com/OHDSI/SqlRender/blob/95028be117f3625d4d52c53835f7a21d03a5f983/java/org/ohdsi/sql/BigQuerySparkTranslate.java
Could you let us know if this is working outside the typical sqlrender function of translate/render SQL?
@anton-abushkevich , it looks like this code was added as part of PR #2004. Can you tell us what the thinking was?
Vocabulary search on a Databricks source invokes
sparkHandleInsert()
(https://github.com/OHDSI/WebAPI/blob/master/src/main/java/org/ohdsi/webapi/util/PreparedStatementRenderer.java#L293), which tries to open a fresh connection to the database without supplying username and password, which triggers the exception.Expected behavior
/atlas/#/search?query=hypertension
Actual behavior
Using ohdsi/webapi:2.13.0, the query successfully returns a list of results, but it also leaves a stacktrace in the logs:
Steps to reproduce behavior