Search in sources :

Example 6 with ParquetReadOptions

use of org.apache.parquet.ParquetReadOptions in project drill by apache.

the class TestParquetReaderConfig method testReadOptions.

@Test
public void testReadOptions() {
    // set enableStringsSignedMinMax to true
    ParquetReaderConfig readerConfig = new ParquetReaderConfig(false, false, false, true, true);
    ParquetReadOptions readOptions = readerConfig.toReadOptions();
    assertTrue(readOptions.useSignedStringMinMax());
    // set enableStringsSignedMinMax to false
    readerConfig = new ParquetReaderConfig(false, false, false, true, false);
    readOptions = readerConfig.toReadOptions();
    assertFalse(readOptions.useSignedStringMinMax());
}
Also used : ParquetReadOptions(org.apache.parquet.ParquetReadOptions) ParquetTest(org.apache.drill.categories.ParquetTest) Test(org.junit.Test) BaseTest(org.apache.drill.test.BaseTest) UnlikelyTest(org.apache.drill.categories.UnlikelyTest)

Aggregations

ParquetReadOptions (org.apache.parquet.ParquetReadOptions)6 ParquetMetadata (org.apache.parquet.hadoop.metadata.ParquetMetadata)3 HadoopInputFile (org.apache.parquet.hadoop.util.HadoopInputFile)3 ParquetFileReader (org.apache.parquet.hadoop.ParquetFileReader)2 FileMetaData (org.apache.parquet.hadoop.metadata.FileMetaData)2 SeekableInputStream (org.apache.parquet.io.SeekableInputStream)2 IOException (java.io.IOException)1 ParquetTest (org.apache.drill.categories.ParquetTest)1 UnlikelyTest (org.apache.drill.categories.UnlikelyTest)1 BaseTest (org.apache.drill.test.BaseTest)1 Path (org.apache.hadoop.fs.Path)1 ParquetMetadataConverter (org.apache.parquet.format.converter.ParquetMetadataConverter)1 BlockMetaData (org.apache.parquet.hadoop.metadata.BlockMetaData)1 ColumnChunkMetaData (org.apache.parquet.hadoop.metadata.ColumnChunkMetaData)1 TransParquetFileReader (org.apache.parquet.hadoop.util.CompressionConverter.TransParquetFileReader)1 InputFile (org.apache.parquet.io.InputFile)1 UnsupportedTypeException (org.greenplum.pxf.api.error.UnsupportedTypeException)1 Test (org.junit.Test)1