Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import org.apache.iceberg.io.FileAppender;
import org.apache.iceberg.parquet.Parquet;
import org.apache.iceberg.relocated.com.google.common.collect.Iterables;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public class TestParquetReadProjection extends TestReadProjection {
@Override
Expand All @@ -45,4 +47,29 @@ protected GenericData.Record writeAndRead(

return Iterables.getOnlyElement(records);
}

@Override
@Test
@Disabled("Empty struct read is not supported for Parquet")
public void testEmptyStructProjection() throws Exception {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests was added for Avro. When empty struct was supported. But it is not yet supported for parquet. Since both avro and parquet now use the common class. Ignoring the tests for parquet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, This class uses (extends) TestReadProjection from api module now. Instead of duplicated local copy.


@Override
@Test
@Disabled("Empty struct read is not supported for Parquet")
public void testEmptyStructRequiredProjection() throws Exception {}

@Override
@Test
@Disabled("Empty struct read is not supported for Parquet")
public void testRequiredEmptyStructInRequiredStruct() throws Exception {}

@Override
@Test
@Disabled("Empty struct read is not supported for Parquet")
public void testEmptyNestedStructProjection() throws Exception {}

@Override
@Test
@Disabled("Empty struct read is not supported for Parquet")
public void testEmptyNestedStructRequiredProjection() throws Exception {}
}
Loading