Program: 33637
Project: 33637
Buggy source:
@Test public void luceneIndexFilterTest() throws UnsupportedException, ExecutionException {
  try {
    Thread.sleep(10000);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
  List<LogicalStep> stepList=new ArrayList<>();
  Project project=createProject(CASSANDRA_CLUSTERNAME_CONSTANT,KEYSPACE,MYTABLE2_CONSTANT,Arrays.asList(ARTIST_CONSTANT,AGE_CONSTANT,RATE_CONSTANT,ACTIVE_CONSTANT));
  project.setNextStep(createFilter(KEYSPACE,MYTABLE2_CONSTANT,ARTIST_CONSTANT,Operator.MATCH,ARTIST_WILDCARD,true));
  LogicalStep filter=project.getNextStep();
  filter.setNextStep(createSelect(Arrays.asList(createColumn(KEYSPACE,MYTABLE2_CONSTANT,ARTIST_CONSTANT)),Arrays.asList(ARTIST_ALIAS_CONSTANT)));
  stepList.add(project);
  LogicalWorkflow logicalWorkflow=new LogicalWorkflow(stepList);
  QueryResult result=deepQueryEngine.executeWorkFlow(logicalWorkflow);
  List<ColumnMetadata> columnsMetadata=result.getResultSet().getColumnMetadata();
  List<Row> rowsList=result.getResultSet().getRows();
  assertEquals("String_Node_Str",1,columnsMetadata.size());
  assertEquals("String_Node_Str",2,rowsList.size());
  assertEquals("String_Node_Str",KEYSPACE + "String_Node_Str" + MYTABLE2_CONSTANT+ "String_Node_Str"+ ARTIST_CONSTANT,columnsMetadata.get(0).getColumnName());
  assertEquals("String_Node_Str",KEYSPACE + "String_Node_Str" + MYTABLE2_CONSTANT,columnsMetadata.get(0).getTableName());
  for (  Row row : rowsList) {
    assertEquals("String_Node_Str",1,row.size());
    assertNotNull("String_Node_Str",row.getCell(ARTIST_ALIAS_CONSTANT));
  }
}

Fixed version (ground truth):
@Test public void luceneIndexFilterTest() throws UnsupportedException, ExecutionException {
  try {
    Thread.sleep(10000);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
  List<LogicalStep> stepList=new ArrayList<>();
  Project project=createProject(CASSANDRA_CLUSTERNAME_CONSTANT,KEYSPACE,MYTABLE2_CONSTANT,Arrays.asList(ARTIST_CONSTANT,AGE_CONSTANT,RATE_CONSTANT,ACTIVE_CONSTANT));
  project.setNextStep(createFilter(KEYSPACE,MYTABLE2_CONSTANT,ARTIST_CONSTANT,Operator.MATCH,ARTIST_WILDCARD,true));
  LogicalStep filter=project.getNextStep();
  filter.setNextStep(createSelect(Arrays.asList(createColumn(KEYSPACE,MYTABLE2_CONSTANT,ARTIST_CONSTANT)),Arrays.asList(ARTIST_ALIAS_CONSTANT)));
  stepList.add(project);
  LogicalWorkflow logicalWorkflow=new LogicalWorkflow(stepList);
  QueryResult result=deepQueryEngine.executeWorkFlow(logicalWorkflow);
  List<ColumnMetadata> columnsMetadata=result.getResultSet().getColumnMetadata();
  List<Row> rowsList=result.getResultSet().getRows();
  assertEquals("String_Node_Str",1,columnsMetadata.size());
  assertEquals("String_Node_Str",1,rowsList.size());
  assertEquals("String_Node_Str",KEYSPACE + "String_Node_Str" + MYTABLE2_CONSTANT+ "String_Node_Str"+ ARTIST_CONSTANT,columnsMetadata.get(0).getColumnName());
  assertEquals("String_Node_Str",KEYSPACE + "String_Node_Str" + MYTABLE2_CONSTANT,columnsMetadata.get(0).getTableName());
  for (  Row row : rowsList) {
    assertEquals("String_Node_Str",1,row.size());
    assertNotNull("String_Node_Str",row.getCell(ARTIST_ALIAS_CONSTANT));
  }
}