File tree Expand file tree Collapse file tree
java/org/apache/parquet/hadoop Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020
2121import static org .assertj .core .api .Assertions .assertThat ;
2222
23- import java .net .URISyntaxException ;
2423import org .apache .hadoop .conf .Configuration ;
2524import org .apache .hadoop .fs .Path ;
2625import org .apache .parquet .example .data .Group ;
3433
3534public 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 ))) {
You can’t perform that action at this time.
0 commit comments