"root directory to dataset (directory: %s).", partitionUri, directoryUri));
}
Iterable<String> parts = Splitter.on('/').split(relativizedUri.getPath());
PartitionStrategy partitionStrategy = dataset.getDescriptor().getPartitionStrategy();
List<FieldPartitioner> fieldPartitioners = partitionStrategy.getFieldPartitioners();
if (Iterables.size(parts) > fieldPartitioners.size()) {
throw new IllegalArgumentException(String.format("Too many partition directories " +
"for %s (%s), expecting %s.", partitionUri, Iterables.size(parts),
fieldPartitioners.size()));
}