Skip to content
Merged
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 @@ -67,7 +67,7 @@ public TransactionLogEntries(long entryNumber, TrinoInputFile inputFile, DataSiz
}
}
catch (IOException e) {
throw new TrinoException(GENERIC_INTERNAL_ERROR, "Error while reading from transaction entry iterator for the file %s".formatted(transactionLogFilePath));
throw new TrinoException(GENERIC_INTERNAL_ERROR, "Error while reading from transaction entry iterator for the file %s".formatted(transactionLogFilePath), e);
}
}

Expand Down Expand Up @@ -140,7 +140,7 @@ public TransactionLogEntryIterator(long entryNumber, TrinoInputFile inputFile)
inputStream = inputFile.newStream();
}
catch (Exception e) {
throw new TrinoException(GENERIC_INTERNAL_ERROR, "Error while initializing the transaction entry iterator for the file %s".formatted(inputFile.location()));
throw new TrinoException(GENERIC_INTERNAL_ERROR, "Error while initializing the transaction entry iterator for the file %s".formatted(inputFile.location()), e);
}
this.reader = new BufferedReader(new InputStreamReader(inputStream, UTF_8), JSON_LOG_ENTRY_READ_BUFFER_SIZE);
}
Expand All @@ -153,7 +153,7 @@ protected DeltaLakeTransactionLogEntry computeNext()
line = reader.readLine();
}
catch (IOException e) {
throw new TrinoException(GENERIC_INTERNAL_ERROR, "Error while reading from transaction entry iterator for the file %s".formatted(location));
throw new TrinoException(GENERIC_INTERNAL_ERROR, "Error while reading from transaction entry iterator for the file %s".formatted(location), e);
}
if (line == null) {
close();
Expand Down