Program: 33553
Project: 33553
Buggy source:
@Test public void insertBooleanTest() throws ConnectorException {
  ClusterName clusterName=getClusterName();
  TableMetadataBuilder tableMetadataBuilder=new TableMetadataBuilder(CATALOG,TABLE);
  TableMetadata tableMetadata=tableMetadataBuilder.addColumn(BOOLEAN_COLUMN,ColumnType.BOOLEAN).addColumn(STRING_COLUMN,ColumnType.VARCHAR).build(false);
  sConnector.getMetadataEngine().createTable(getClusterName(),tableMetadata);
  LogicalWorkFlowCreator logicalWorkFlowCreator=new LogicalWorkFlowCreator(CATALOG,TABLE,clusterName);
  LinkedList<LogicalWorkFlowCreator.ConnectorField> selectColumns=new LinkedList<>();
  selectColumns.add(logicalWorkFlowCreator.createConnectorField(BOOLEAN_COLUMN,BOOLEAN_COLUMN,ColumnType.BOOLEAN));
  selectColumns.add(logicalWorkFlowCreator.createConnectorField(STRING_COLUMN,STRING_COLUMN,ColumnType.VARCHAR));
  LogicalWorkflow logicalWorkFlow=logicalWorkFlowCreator.addColumnName(BOOLEAN_COLUMN,STRING_COLUMN).addWindow(WindowType.NUM_ROWS,1).addSelect(selectColumns).getLogicalWorkflow();
  ResultHandlerTest resultSet=new ResultHandlerTest();
  StreamingRead reader=new StreamingRead(sConnector,logicalWorkFlow,resultSet);
  String queryId=String.valueOf(Math.abs(random.nextLong()));
  reader.setQueryId(queryId);
  reader.start();
  waitSeconds(15);
  StreamingInserter streamingInserter=new StreamingInserter(sConnector,clusterName,tableMetadata,new RowToInsertDefault());
  streamingInserter.numOfElement(10).elementPerSecond(5);
  streamingInserter.start();
  streamingInserter.addTypeToInsert(ColumnType.BOOLEAN).addTypeToInsert(ColumnType.VARCHAR);
  waitSeconds(10);
  streamingInserter.end();
  endReader(reader);
  ResultSet resSet=resultSet.getResultSet(queryId);
  List<ColumnMetadata> columnMetadata=resSet.getColumnMetadata();
  assertEquals(BOOLEAN_COLUMN,columnMetadata.get(0).getName().getName());
  List<Boolean> numsRecovered=new ArrayList<Boolean>(10);
  for (  Row recoveredRow : resSet.getRows()) {
    if (recoveredRow.getCell(STRING_COLUMN).getValue().equals("String_Node_Str")) {
      numsRecovered.add((Boolean)recoveredRow.getCell(BOOLEAN_COLUMN).getValue());
      assertTrue((Boolean)recoveredRow.getCell(BOOLEAN_COLUMN).getValue());
    }
  }
  assertEquals(10,numsRecovered.size());
  assertTrue(columnMetadata.size() == 2);
  assertEquals(ColumnType.BOOLEAN,columnMetadata.get(0).getColumnType());
  assertTrue(resSet.getRows().get(0).getCell(BOOLEAN_COLUMN).getValue() instanceof Boolean);
}

Fixed version (ground truth):
@Test public void insertBooleanTest() throws ConnectorException {
  ClusterName clusterName=getClusterName();
  TableMetadataBuilder tableMetadataBuilder=new TableMetadataBuilder(CATALOG,TABLE,clusterName.getName());
  TableMetadata tableMetadata=tableMetadataBuilder.addColumn(BOOLEAN_COLUMN,ColumnType.BOOLEAN).addColumn(STRING_COLUMN,ColumnType.VARCHAR).build(false);
  sConnector.getMetadataEngine().createTable(getClusterName(),tableMetadata);
  LogicalWorkFlowCreator logicalWorkFlowCreator=new LogicalWorkFlowCreator(CATALOG,TABLE,clusterName);
  LinkedList<LogicalWorkFlowCreator.ConnectorField> selectColumns=new LinkedList<>();
  selectColumns.add(logicalWorkFlowCreator.createConnectorField(BOOLEAN_COLUMN,BOOLEAN_COLUMN,ColumnType.BOOLEAN));
  selectColumns.add(logicalWorkFlowCreator.createConnectorField(STRING_COLUMN,STRING_COLUMN,ColumnType.VARCHAR));
  LogicalWorkflow logicalWorkFlow=logicalWorkFlowCreator.addColumnName(BOOLEAN_COLUMN,STRING_COLUMN).addWindow(WindowType.NUM_ROWS,1).addSelect(selectColumns).getLogicalWorkflow();
  ResultHandlerTest resultSet=new ResultHandlerTest();
  StreamingRead reader=new StreamingRead(sConnector,logicalWorkFlow,resultSet);
  String queryId=String.valueOf(Math.abs(random.nextLong()));
  reader.setQueryId(queryId);
  reader.start();
  waitSeconds(15);
  StreamingInserter streamingInserter=new StreamingInserter(sConnector,clusterName,tableMetadata,new RowToInsertDefault());
  streamingInserter.numOfElement(10).elementPerSecond(5);
  streamingInserter.start();
  streamingInserter.addTypeToInsert(ColumnType.BOOLEAN).addTypeToInsert(ColumnType.VARCHAR);
  waitSeconds(10);
  streamingInserter.end();
  endReader(reader);
  ResultSet resSet=resultSet.getResultSet(queryId);
  List<ColumnMetadata> columnMetadata=resSet.getColumnMetadata();
  assertEquals(BOOLEAN_COLUMN,columnMetadata.get(0).getName().getName());
  List<Boolean> numsRecovered=new ArrayList<Boolean>(10);
  for (  Row recoveredRow : resSet.getRows()) {
    if (recoveredRow.getCell(STRING_COLUMN).getValue().equals("String_Node_Str")) {
      numsRecovered.add((Boolean)recoveredRow.getCell(BOOLEAN_COLUMN).getValue());
      assertTrue((Boolean)recoveredRow.getCell(BOOLEAN_COLUMN).getValue());
    }
  }
  assertEquals(10,numsRecovered.size());
  assertTrue(columnMetadata.size() == 2);
  assertEquals(ColumnType.BOOLEAN,columnMetadata.get(0).getColumnType());
  assertTrue(resSet.getRows().get(0).getCell(BOOLEAN_COLUMN).getValue() instanceof Boolean);
}