Skip to content

Instantly share code, notes, and snippets.

View ishepherd's full-sized avatar
😃
(╯°□°)╯︵ ┻━┻

Iain Shepherd ishepherd

😃
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@ishepherd
ishepherd / ParquetReaderTest.cs
Created December 18, 2020 04:47
Test that will repro EndOfStreamException
[Fact]
public void Read_plain_dictionary_data_page_that_has_no_content()
{
using (var reader = new ParquetReader(OpenTestFile("/special/data_page_without_content.parquet"), leaveStreamOpen: false))
{
// if the issue has not been fixed, this line will throw EndOfStreamException
DataColumn[] columns = reader.ReadEntireRowGroup();
// Compare to ground truth from spark