diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/fs/HiveFileIterator.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/fs/HiveFileIterator.java index 7799fee831eb..373ad14e3d0c 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/fs/HiveFileIterator.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/fs/HiveFileIterator.java @@ -100,7 +100,7 @@ private Iterator 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); } } diff --git a/plugin/trino-phoenix5/src/main/java/io/trino/plugin/phoenix5/PhoenixPageSourceProvider.java b/plugin/trino-phoenix5/src/main/java/io/trino/plugin/phoenix5/PhoenixPageSourceProvider.java index b4e6beb4561d..55a5f941d71d 100644 --- a/plugin/trino-phoenix5/src/main/java/io/trino/plugin/phoenix5/PhoenixPageSourceProvider.java +++ b/plugin/trino-phoenix5/src/main/java/io/trino/plugin/phoenix5/PhoenixPageSourceProvider.java @@ -102,7 +102,7 @@ private ColumnAdaptation buildMergeIdColumnAdaptation(List 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); }