Skip to content
Merged

Fix typo #17908

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private Iterator<TrinoFileStatus> getLocatedFileStatusRemoteIterator(Location lo
return new FileStatusIterator(table, location, fileSystem, directoryLister, namenodeStats, nestedDirectoryPolicy);
}
catch (IOException e) {
throw new TrinoException(HIVE_FILESYSTEM_ERROR, "Filed to list files for location: " + location, e);
throw new TrinoException(HIVE_FILESYSTEM_ERROR, "Failed to list files for location: " + location, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private ColumnAdaptation buildMergeIdColumnAdaptation(List<JdbcColumnHandle> sca
.map(RowType.Field::getName)
.map(Optional::get)
.map(fieldName -> indexOf(scanColumns.iterator(), handle -> handle.getColumnName().equals(fieldName)))
.peek(fieldIndex -> checkArgument(fieldIndex != -1, "Merge row id filed must exist in scanned columns"))
.peek(fieldIndex -> checkArgument(fieldIndex != -1, "Merge row id field must exist in scanned columns"))
.collect(toImmutableList());
return ColumnAdaptation.mergedRowColumns(mergeRowIdSourceChannels);
}
Expand Down