Fixed duplicate column problem in BucketBatchByLength

This commit is contained in:
Mahdi 2020-10-23 16:23:20 -04:00
parent 7276198580
commit 94e916b0c2
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ Status BucketBatchByLengthNode::ValidateParams() {
}
}
if (!column_names_.empty()) {
RETURN_IF_NOT_OK(ValidateDatasetColumnParam("BucketBatchByLengthNode", "column_names", column_names_));
}
// Check bucket_batch_sizes: must be positive
if (bucket_batch_sizes_.empty()) {
std::string err_msg = "BucketBatchByLengthNode: bucket_batch_sizes must be non-empty";