if (sampleWeightField > -1) {
delegatedColumns.remove(sampleWeightField);
RecordSet recordSet;
if (delegatedColumns.isEmpty()) {
// Pick a random column, so that we can figure out how many rows there are
TpchSplit tpchSplit = (TpchSplit) split;
ConnectorColumnHandle column = Iterables.getFirst(metadata.getColumnHandles(tpchSplit.getTableHandle()).values(), null);
checkNotNull(column, "Could not find any columns");
recordSet = new EmptyRecordSet(super.getRecordSet(split, ImmutableList.of(column)));
}
else {
recordSet = super.getRecordSet(split, delegatedColumns);