Skip to content

Commit

Permalink
print file path in the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtmac committed Jan 11, 2023
1 parent a496c31 commit f3ba6e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ public PageReadStore readNextRowGroup() throws IOException {
try {
rowGroup = internalReadRowGroup(currentBlock);
} catch (ParquetEmptyBlockException e) {
LOG.warn("Read empty block at index {}", currentBlock);
LOG.warn("Read empty block at index {} from {}", currentBlock, getFile());
advanceToNextBlock();
return readNextRowGroup();
}
Expand Down Expand Up @@ -1044,7 +1044,7 @@ public PageReadStore readNextFilteredRowGroup() throws IOException {
}
BlockMetaData block = blocks.get(currentBlock);
if (block.getRowCount() == 0L) {
LOG.warn("Read empty block at index {}", currentBlock);
LOG.warn("Read empty block at index {} from {}", currentBlock, getFile());
// Skip the empty block
advanceToNextBlock();
return readNextFilteredRowGroup();
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<pig.version>0.16.0</pig.version>
<pig.classifier>h2</pig.classifier>
<thrift-maven-plugin.version>0.10.0</thrift-maven-plugin.version>
<thrift.version>0.16.0</thrift.version>
<thrift.version>0.17.0</thrift.version>
<format.thrift.version>${thrift.version}</format.thrift.version>
<fastutil.version>8.4.2</fastutil.version>
<semver.api.version>0.9.33</semver.api.version>
Expand Down Expand Up @@ -424,7 +424,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${surefire.argLine} ${extraJavaTestArgs}</argLine>
<argLine>${extraJavaTestArgs}</argLine>
<systemPropertyVariables>
<!-- Configure Parquet logging during tests
See http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html
Expand Down

0 comments on commit f3ba6e8

Please sign in to comment.