FileSystem fileSystem = FileSystem.get(tablePath.toUri(), _configuration);
if (!fileSystem.exists(tablePath)) {
LOG.error("Table [{0}] is missing, defined location [{1}]", table, tablePath.toUri());
throw new RuntimeException("Table [" + table + "] is missing, defined location [" + tablePath.toUri() + "]");
}
FileStatus[] listStatus = fileSystem.listStatus(tablePath);
for (FileStatus status : listStatus) {
if (status.isDir()) {
String name = status.getPath().getName();
if (name.startsWith(SHARD_PREFIX)) {
result.add(name);