File tree Expand file tree Collapse file tree
src/main/java/org/ohdsi/webapi/pathway Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131import java .util .stream .Collectors ;
3232import java .util .stream .IntStream ;
3333import java .util .stream .Stream ;
34+ import org .ohdsi .sql .SqlRender ;
3435import org .ohdsi .webapi .common .generation .CancelableTasklet ;
3536import org .ohdsi .webapi .util .PreparedStatementRendererCreator ;
3637import org .springframework .jdbc .core .PreparedStatementCreator ;
@@ -170,6 +171,10 @@ private int[] savePathwayCodes(List<PathwayCode> pathwayCodes) {
170171 private int [] savePaths (Source source , Long generationId ) throws SQLException {
171172 String sql = SAVE_PATHS_SQL ;
172173 if (source .getSourceDialect ().equals ("spark" )) {
174+ sql = SqlRender .renderSql (sql ,
175+ new String []{"target_database_schema" , GENERATION_ID },
176+ new String []{source .getTableQualifier (SourceDaimon .DaimonType .Results ), generationId .toString ()}
177+ );
173178 sql = BigQuerySparkTranslate .sparkHandleInsert (sql , source .getSourceConnection ());
174179 }
175180
You can’t perform that action at this time.
0 commit comments