Skip to content

Should Writer::flush also write the header? #220

Closed

Description

@Kriskras99

Currently Writer::flush only flushes the buffers but both Writer::drop and Writer::into_inner also write the header.

Does it make sense to also call maybe_write_header in Writer::flush?

Activity

  1. martin-g commented on Jul 1, 2025

    @martin-g
    Member

    I wondered whether this would break use cases like #193 but I think it won't.

  2. Kriskras99 commented on Jul 1, 2025

    @Kriskras99
    ContributorAuthor

    I don't think it should cause any problems, as that would use write_avro_datum_ref directly. If they do use Writer they should already be building it with the builder and has_header(false).

  3. added this to the 0.20.0 milestone on Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions