Program: 136724
Project: 136724
Buggy source:
public Map<String,String> getQueryMap(){
  Map<String,String> map=new HashMap<String,String>();
  boolean isSqlEngine=ExecutionLanguage.SQL.equals(this.analysis.getParameters().getExecutionLanguage());
  AnalysisType analysisType=this.analysis.getParameters().getAnalysisType();
  boolean isHive=dbmsLanguage instanceof HiveDbmsLanguage;
switch (this.indicatorEnum) {
case RowCountIndicatorEnum:
    if (isSqlEngine) {
      map.put(MENU_VIEW_ROWS,getComment(MENU_VIEW_ROWS) + getRowsStatement());
    }
  break;
case NullCountIndicatorEnum:
case BlankCountIndicatorEnum:
case DefValueCountIndicatorEnum:
case UserDefinedIndicatorEnum:
IndicatorDefinition indicatorDefinition=this.indicator.getIndicatorDefinition();
map.put(MENU_VIEW_ROWS,isSqlEngine ? getComment(MENU_VIEW_ROWS) + (indicatorDefinition instanceof UDIndicatorDefinition ? getQueryForViewRows(indicatorDefinition) : getRowsStatement()) : null);
break;
case UniqueIndicatorEnum:
if (analysisType != AnalysisType.COLUMN_SET) {
if (!isHive) {
map.put(MENU_VIEW_ROWS,isSqlEngine ? getComment(MENU_VIEW_ROWS) + getRowsStatementWithSubQuery() : null);
}
 else if (!isSqlEngine) {
map.put(MENU_VIEW_ROWS,null);
}
}
map.put(MENU_VIEW_VALUES,isSqlEngine ? getComment(MENU_VIEW_VALUES) + getValuesStatement(this.columnName) : null);
break;
case DistinctCountIndicatorEnum:
map.put(MENU_VIEW_VALUES,isSqlEngine ? getComment(MENU_VIEW_VALUES) + getDistinctValuesStatement(this.columnName) : null);
break;
case DuplicateCountIndicatorEnum:
if (analysisType != AnalysisType.COLUMN_SET) {
if (!isHive) {
map.put(MENU_VIEW_ROWS,isSqlEngine ? getComment(MENU_VIEW_ROWS) + getRowsStatementWithSubQuery() : null);
}
 else if (!isSqlEngine) {
map.put(MENU_VIEW_ROWS,null);
}
}
map.put(MENU_VIEW_VALUES,isSqlEngine ? getComment(MENU_VIEW_VALUES) + getValuesStatement(this.columnName) : null);
break;
default :
}
return map;
}

Fixed version (ground truth):
public Map<String,String> getQueryMap(){
  Map<String,String> map=new HashMap<String,String>();
  boolean isSqlEngine=ExecutionLanguage.SQL.equals(this.analysis.getParameters().getExecutionLanguage());
  AnalysisType analysisType=this.analysis.getParameters().getAnalysisType();
  boolean isHive=dbmsLanguage instanceof HiveDbmsLanguage;
switch (this.indicatorEnum) {
case RowCountIndicatorEnum:
    if (isSqlEngine) {
      map.put(MENU_VIEW_ROWS,getComment(MENU_VIEW_ROWS) + getRowsStatement());
    }
  break;
case NullCountIndicatorEnum:
case BlankCountIndicatorEnum:
case DefValueCountIndicatorEnum:
case UserDefinedIndicatorEnum:
IndicatorDefinition indicatorDefinition=this.indicator.getIndicatorDefinition();
map.put(MENU_VIEW_ROWS,isSqlEngine ? getComment(MENU_VIEW_ROWS) + (indicatorDefinition instanceof UDIndicatorDefinition ? getQueryForViewRows(indicatorDefinition) : getRowsStatement()) : null);
break;
case UniqueIndicatorEnum:
case DuplicateCountIndicatorEnum:
if (analysisType != AnalysisType.COLUMN_SET) {
if (!isHive) {
map.put(MENU_VIEW_ROWS,isSqlEngine ? getComment(MENU_VIEW_ROWS) + getRowsStatementWithSubQuery() : null);
}
 else if (!isSqlEngine) {
map.put(MENU_VIEW_ROWS,null);
}
}
map.put(MENU_VIEW_VALUES,isSqlEngine ? getComment(MENU_VIEW_VALUES) + getValuesStatement(this.columnName) : null);
break;
case DistinctCountIndicatorEnum:
map.put(MENU_VIEW_VALUES,isSqlEngine ? getComment(MENU_VIEW_VALUES) + getDistinctValuesStatement(this.columnName) : null);
break;
default :
}
return map;
}