Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luciano-fiandesio committed Jan 10, 2025
1 parent 86b6eb1 commit a4ff98c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ String getAggregateClauseForProgramIndicator(
Date earliestStartDate,
Date latestDate);

void contributeCTE(
void contributeCte(
ProgramIndicator programIndicator,
AnalyticsType outerSqlEntity,
Date earliestStartDate,
Date latestDate,
CteContext cteContext);

void contributeCTE(
void contributeCte(
ProgramIndicator programIndicator,
RelationshipType relationshipType,

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'relationshipType' is never used.
AnalyticsType outerSqlEntity,

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'outerSqlEntity' is never used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ protected ColumnAndAlias getCoordinateColumn(QueryItem item, String suffix) {
return ColumnAndAlias.EMPTY;
}

@Override
protected String getColumnWithCte(QueryItem item, String suffix, CteContext cteContext) {
List<String> columns = new ArrayList<>();
String colName = item.getItemName();

CteDefinition cteDef = cteContext.getDefinitionByItemUid(computeKey(item));
int programStageOffset = computeRowNumberOffset(item.getProgramStageOffset());
Expand Down Expand Up @@ -938,15 +938,15 @@ private void handleProgramIndicatorCte(
QueryItem item, CteContext cteContext, EventQueryParams params) {
ProgramIndicator pi = (ProgramIndicator) item.getItem();
if (item.hasRelationshipType()) {
programIndicatorSubqueryBuilder.contributeCTE(
programIndicatorSubqueryBuilder.contributeCte(
pi,
item.getRelationshipType(),
getAnalyticsType(),
params.getEarliestStartDate(),
params.getLatestEndDate(),
cteContext);
} else {
programIndicatorSubqueryBuilder.contributeCTE(
programIndicatorSubqueryBuilder.contributeCte(
pi,
getAnalyticsType(),
params.getEarliestStartDate(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ public String getAggregateClauseForProgramIndicator(
}

@Override
public void contributeCTE(
public void contributeCte(
ProgramIndicator programIndicator,
AnalyticsType outerSqlEntity,
Date earliestStartDate,
Date latestDate,
CteContext cteContext) {
contributeCTE(
contributeCte(
programIndicator, null, outerSqlEntity, earliestStartDate, latestDate, cteContext);
}

@Override
public void contributeCTE(
public void contributeCte(
ProgramIndicator programIndicator,
RelationshipType relationshipType,
AnalyticsType outerSqlEntity,
Expand Down

0 comments on commit a4ff98c

Please sign in to comment.