Program: 33550
Project: 33550
Buggy source:
@Test public void insertDoubleTest() throws ConnectorException {
  ClusterName clusterName=getClusterName();
  TableMetadataBuilder tableMetadataBuilder=new TableMetadataBuilder(CATALOG,TABLE);
  TableMetadata tableMetadata=tableMetadataBuilder.addColumn(DOUBLE_COLUMN,ColumnType.DOUBLE).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(DOUBLE_COLUMN,DOUBLE_COLUMN,ColumnType.DOUBLE));
  selectColumns.add(logicalWorkFlowCreator.createConnectorField(STRING_COLUMN,STRING_COLUMN,ColumnType.VARCHAR));
  LogicalWorkflow logicalWorkFlow=logicalWorkFlowCreator.addColumnName(DOUBLE_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.DOUBLE).addTypeToInsert(ColumnType.VARCHAR);
  waitSeconds(10);
  streamingInserter.end();
  endReader(reader);
  ResultSet resSet=resultSet.getResultSet(queryId);
  List<ColumnMetadata> columnMetadata=resSet.getColumnMetadata();
  assertEquals(DOUBLE_COLUMN,columnMetadata.get(0).getName().getName());
  List<Double> numsRecovered=new ArrayList<Double>(10);
  for (  Row recoveredRow : resSet.getRows()) {
    if (recoveredRow.getCell(STRING_COLUMN).getValue().equals("String_Node_Str")) {
      numsRecovered.add((Double)recoveredRow.getCell(DOUBLE_COLUMN).getValue());
    }
  }
  assertEquals(10,numsRecovered.size());
  for (int i=0; i < 10; i++) {
    assertTrue(numsRecovered.contains(new Double(i + 0.5)));
  }
  assertTrue(columnMetadata.size() == 2);
  assertEquals(ColumnType.DOUBLE,columnMetadata.get(0).getColumnType());
  assertTrue(resSet.getRows().get(0).getCell(DOUBLE_COLUMN).getValue() instanceof Double);
}

Fixed version (ground truth):
@Test public void insertDoubleTest() throws ConnectorException {
  ClusterName clusterName=getClusterName();
  TableMetadataBuilder tableMetadataBuilder=new TableMetadataBuilder(CATALOG,TABLE,clusterName.getName());
  TableMetadata tableMetadata=tableMetadataBuilder.addColumn(DOUBLE_COLUMN,ColumnType.DOUBLE).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(DOUBLE_COLUMN,DOUBLE_COLUMN,ColumnType.DOUBLE));
  selectColumns.add(logicalWorkFlowCreator.createConnectorField(STRING_COLUMN,STRING_COLUMN,ColumnType.VARCHAR));
  LogicalWorkflow logicalWorkFlow=logicalWorkFlowCreator.addColumnName(DOUBLE_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.DOUBLE).addTypeToInsert(ColumnType.VARCHAR);
  waitSeconds(10);
  streamingInserter.end();
  endReader(reader);
  ResultSet resSet=resultSet.getResultSet(queryId);
  List<ColumnMetadata> columnMetadata=resSet.getColumnMetadata();
  assertEquals(DOUBLE_COLUMN,columnMetadata.get(0).getName().getName());
  List<Double> numsRecovered=new ArrayList<Double>(10);
  for (  Row recoveredRow : resSet.getRows()) {
    if (recoveredRow.getCell(STRING_COLUMN).getValue().equals("String_Node_Str")) {
      numsRecovered.add((Double)recoveredRow.getCell(DOUBLE_COLUMN).getValue());
    }
  }
  assertEquals(10,numsRecovered.size());
  for (int i=0; i < 10; i++) {
    assertTrue(numsRecovered.contains(new Double(i + 0.5)));
  }
  assertTrue(columnMetadata.size() == 2);
  assertEquals(ColumnType.DOUBLE,columnMetadata.get(0).getColumnType());
  assertTrue(resSet.getRows().get(0).getCell(DOUBLE_COLUMN).getValue() instanceof Double);
}