Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
joyyao8 committed Oct 14, 2015
1 parent e681109 commit de1a838
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,11 @@ private ConnectorTableHandle getTableHandle(SchemaTableName tableName)
List<TableColumn> tableColumns = dao.getTableColumns(table.getTableId());
checkArgument(!tableColumns.isEmpty(), "Table %s does not have any columns", tableName);

RaptorColumnHandle countColumnHandle = null;
RaptorColumnHandle sampleWeightColumnHandle = null;
for (TableColumn tableColumn : tableColumns) {
if (SAMPLE_WEIGHT_COLUMN_NAME.equals(tableColumn.getColumnName())) {
sampleWeightColumnHandle = getRaptorColumnHandle(tableColumn);
}
if (countColumnHandle == null && tableColumn.getDataType().getJavaType().isPrimitive()) {
countColumnHandle = getRaptorColumnHandle(tableColumn);
}
}

return new RaptorTableHandle(
Expand Down

0 comments on commit de1a838

Please sign in to comment.