Program: 76765
Project: 76765
Buggy source:
/** 
 * filter on date time type column with operator Bottom N
 */
public void test_FilterWithBottomN() throws Exception {
  String[] bindingNameFilter=new String[3];
  bindingNameFilter[0]="String_Node_Str";
  bindingNameFilter[1]="String_Node_Str";
  bindingNameFilter[2]="String_Node_Str";
  IBaseExpression[] bindingExprFilter=new IBaseExpression[3];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[1]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[2]=new ScriptExpression("String_Node_Str");
  String[] bindingNameRow=new String[6];
  bindingNameRow[0]="String_Node_Str";
  bindingNameRow[1]="String_Node_Str";
  bindingNameRow[2]="String_Node_Str";
  bindingNameRow[3]="String_Node_Str";
  bindingNameRow[4]="String_Node_Str";
  bindingNameRow[5]="String_Node_Str";
  IBaseExpression[] bindingExprRow=new IBaseExpression[6];
  bindingExprRow[0]=new ScriptExpression("String_Node_Str");
  bindingExprRow[1]=new ScriptExpression("String_Node_Str");
  bindingExprRow[2]=new ScriptExpression("String_Node_Str");
  bindingExprRow[3]=new ScriptExpression("String_Node_Str");
  bindingExprRow[4]=new ScriptExpression("String_Node_Str");
  bindingExprRow[5]=new ScriptExpression("String_Node_Str");
  GroupDefinition[] groupDefn=null;
  SortDefinition[] sortDefn=null;
  String[] bindingNameFilter1=new String[1];
  bindingNameFilter[0]="String_Node_Str";
  IBaseExpression[] bindingExprFilter1=new IBaseExpression[1];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  FilterDefinition[] filters=new FilterDefinition[]{new FilterDefinition(new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_BOTTOM_N,"String_Node_Str"))};
  createAndRunQuery(null,null,null,null,null,null,bindingNameFilter,bindingExprFilter,filters,bindingNameRow,bindingExprRow);
}

Fixed version (ground truth):
/** 
 * filter on date time type column with operator Bottom N
 */
public void test_FilterWithBottomN() throws Exception {
  String[] bindingNameFilter=new String[3];
  bindingNameFilter[0]="String_Node_Str";
  bindingNameFilter[1]="String_Node_Str";
  bindingNameFilter[2]="String_Node_Str";
  IBaseExpression[] bindingExprFilter=new IBaseExpression[3];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[1]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[2]=new ScriptExpression("String_Node_Str");
  String[] bindingNameRow=new String[6];
  bindingNameRow[0]="String_Node_Str";
  bindingNameRow[1]="String_Node_Str";
  bindingNameRow[2]="String_Node_Str";
  bindingNameRow[3]="String_Node_Str";
  bindingNameRow[4]="String_Node_Str";
  bindingNameRow[5]="String_Node_Str";
  IBaseExpression[] bindingExprRow=new IBaseExpression[6];
  bindingExprRow[0]=new ScriptExpression("String_Node_Str");
  bindingExprRow[1]=new ScriptExpression("String_Node_Str");
  bindingExprRow[2]=new ScriptExpression("String_Node_Str");
  bindingExprRow[3]=new ScriptExpression("String_Node_Str");
  bindingExprRow[4]=new ScriptExpression("String_Node_Str");
  bindingExprRow[5]=new ScriptExpression("String_Node_Str");
  FilterDefinition[] filters=new FilterDefinition[]{new FilterDefinition(new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_BOTTOM_N,"String_Node_Str"))};
  createAndRunQuery(null,null,null,null,null,null,bindingNameFilter,bindingExprFilter,filters,bindingNameRow,bindingExprRow);
}