Skip to content

Commit

Permalink
Doris fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luciano-fiandesio committed Jan 9, 2025
1 parent 2df0ae2 commit e90f6a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ private String getTableAndColumn(
} else if (DimensionType.ORGANISATION_UNIT_GROUP_SET == dimension.getDimensionType()) {
return params
.getOrgUnitField()
.withSqlBuilder(sqlBuilder)
.getOrgUnitGroupSetCol(col, getAnalyticsType(), isGroupByClause);
} else {
return quoteAlias(col);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ public void contributeCTE(
earliestStartDate,
latestDate)
// FIXME this is a bit of an hack
.replace("subax.\"ps\"", "ps")
.replace("subax.enrollment", "enrollment");

.replaceAll("subax\\.", "");
filter = "where " + piResolvedSqlFilter;
}

Expand All @@ -128,8 +126,7 @@ public void contributeCTE(
earliestStartDate,
latestDate)
// FIXME this is a bit of an hack
.replace("subax.\"ps\"", "ps")
.replace("subax.enrollment", "enrollment");
.replaceAll("subax\\.", "");

String cteSql =
"select enrollment, %s(%s) as value from %s %s group by enrollment"
Expand Down

0 comments on commit e90f6a2

Please sign in to comment.