Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Possible multiple enumeration while serializing #552

Closed
raminrahimzada opened this issue Sep 13, 2024 · 0 comments
Closed

[BUG]: Possible multiple enumeration while serializing #552

raminrahimzada opened this issue Sep 13, 2024 · 0 comments

Comments

@raminrahimzada
Copy link

Library Version

4.25.0

OS

Windows

OS Architecture

64 bit

How to reproduce?

Hi, I have the following example code to reproduce:

public sealed record class MyClass(int Id, Guid Hash);

static IEnumerable<MyClass> YieldAll()
{
    Console.WriteLine("I am here");
    yield return new MyClass(1, Guid.NewGuid());
    yield return new MyClass(2, Guid.NewGuid());
}
static async Task Main()
{
    const string path = "my_file.parquet";
    await ParquetSerializer.SerializeAsync(YieldAll(), path);
}

And the output was:

I am here
I am here

I think it should not enumerate my items twice and it is an issue because in my case I am connecting to the sql table containing millions of rows, so serializing fetches them twice

Failing test

No response

Repository owner locked and limited conversation to collaborators Sep 30, 2024
@aloneguid aloneguid converted this issue into discussion #556 Sep 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant