Skip to content

Commit 0e17db9

Browse files
committed
update parquet-testing file ref
1 parent ec65103 commit 0e17db9

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

parquet-hadoop/src/test/java/org/apache/parquet/hadoop/TestReadInvalidTypeCombination.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import static org.assertj.core.api.Assertions.assertThat;
2222

23-
import java.net.URISyntaxException;
2423
import org.apache.hadoop.conf.Configuration;
2524
import org.apache.hadoop.fs.Path;
2625
import org.apache.parquet.example.data.Group;
@@ -34,17 +33,16 @@
3433

3534
public class TestReadInvalidTypeCombination {
3635

37-
// Path to a Parquet file that contains an invalid logical/physical type combination.
38-
private static final String FILE_PATH = "/invalid_type_combination.parquet";
36+
// parquet-testing file with an invalid logical/physical type combination.
37+
private static final String REFERENCE_FILE = "int32_with_uuid_logical_type.parquet";
38+
private static final String REFERENCE_CHANGESET = "4b1ce4502afff8d20c9b4bb08d07e04e21cdeff3";
3939

40-
private static Path getFilePath() throws Exception {
41-
return new Path(TestReadInvalidTypeCombination.class.getResource(FILE_PATH).toURI());
42-
}
40+
private final InterOpTester interop = new InterOpTester();
4341

4442
@Test
4543
public void testReadInvalidTypeCombinationSucceeds() throws Exception {
4644
Configuration conf = new Configuration();
47-
Path file = getFilePath();
45+
Path file = interop.GetInterOpFile(REFERENCE_FILE, REFERENCE_CHANGESET);
4846

4947
// The footer parse should succeed and drop the annotation and stats for the column.
5048
try (ParquetFileReader reader = ParquetFileReader.open(HadoopInputFile.fromPath(file, conf))) {
-353 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)