Skip to content

Commit

Permalink
Add error message on column count mismatch when making partition name
Browse files Browse the repository at this point in the history
Extracted-From: prestodb/presto#11376
  • Loading branch information
jessesleeping authored and sopel39 committed Jan 29, 2019
1 parent fca84e6 commit ae19c09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static ProtectMode getProtectMode(Table table)

public static String makePartName(List<Column> partitionColumns, List<String> values)
{
checkArgument(partitionColumns.size() == values.size());
checkArgument(partitionColumns.size() == values.size(), "Partition value count does not match the partition column count");
List<String> partitionColumnNames = partitionColumns.stream().map(Column::getName).collect(toList());
return FileUtils.makePartName(partitionColumnNames, values);
}
Expand Down

0 comments on commit ae19c09

Please sign in to comment.