Skip to content

Commit

Permalink
Qualify Hadoop Path in integration test
Browse files Browse the repository at this point in the history
Integration tests rarely interact with Hadoop FS directly, so
`org.apache.hadoop.fs.Path` is uncommon. This allows to import
`java.nio.file.Path`.
  • Loading branch information
findepi committed Jan 13, 2022
1 parent aa02b33 commit d22eb3a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import org.apache.avro.generic.GenericDatumReader;
import org.apache.avro.generic.GenericDatumWriter;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.iceberg.FileFormat;
import org.intellij.lang.annotations.Language;
import org.testng.SkipException;
Expand Down Expand Up @@ -2491,7 +2490,7 @@ public void testIncorrectIcebergFileSizes()

// Replace the file through HDFS client. This is required for correct checksums.
HdfsEnvironment.HdfsContext context = new HdfsContext(getSession().toConnectorSession());
Path manifestFilePath = new Path(manifestFile);
org.apache.hadoop.fs.Path manifestFilePath = new org.apache.hadoop.fs.Path(manifestFile);
FileSystem fs = HDFS_ENVIRONMENT.getFileSystem(context, manifestFilePath);

// Write altered metadata
Expand Down

0 comments on commit d22eb3a

Please sign in to comment.