Hi,

I think this is a fine proposal, but doesn't specify how the numbering and granularity of these version numbers relate to parquet-format releases.

Is it:

* a 1-to-1 mapping between Parquet versions and parquet-format releases
  => each "parquet-format N" release describes Parquet version N

* a 1-to-many mapping between Parquet versions and parquet-format releases (allowing for minor parquet-format releases to add clarifications and fully compatible changes)
  => the latest "parquet-format N.x" release describes Parquet version N

* no a priori mapping, a parquet-format release can describe changes to any Parquet version. => "parquet-format X.Y adds clarifications to Parquet K, fully compatible changes to Parquet M, and introduces Parquet N"

Regards

Antoine.


Le 21/11/2026 à 01:49, Julien Le Dem via dev a écrit :

  As I have briefly mentioned in the sync, I have written down the
  rationale for using version numbers to roll out changes: https://
  docs.google.com/document/
  d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit?tab=t.sm5hivze2mbo
  <https://docs.google.com/document/
  d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit?tab=t.sm5hivze2mbo>

Content bellow for visibility, please comment directly in the doc. The goal is to move from (1) Rolling out on a change per change basis <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.ire04h42nmh6> to (2) Rolling out using versions <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.ihph1r7474gl>. The special case of bumping the magic number is discussed in (3) The special case of the magic number <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.ahtapnolbpza>


  Using version numbers to roll out changes

Status:For review

Author: [email protected] <mailto:[email protected]>

Date: Nov 17, 2026


Using version numbers to roll out changes <https://docs.google.com/ document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.z07scdrpcisw>

Context <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.w1qjdt4sdftk>

Goal <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.3h9c4m63d0oh>

What is a version number? <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.w6075a92l6t8>

Rolling out a forward incompatible change to the format <https:// docs.google.com/document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/ edit?tab=t.sm5hivze2mbo#heading=h.3vythkqtnj7i>

1) Rolling out on a change per change basis <https://docs.google.com/ document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.ire04h42nmh6>

Upsides <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.k8teijf8dnt4>

Downsides <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.xvoaguieiyc2>

2) Rolling out using versions <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.ihph1r7474gl>

Downsides <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.gogdqgyqedxg>

Upsides <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.kmvwetmmr6lu>

3) The special case of the magic number <https://docs.google.com/ document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.sm5hivze2mbo#heading=h.ahtapnolbpza>


  Context

We have established a taxonomy to make changes <https://docs.google.com/ document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.8veepidgez8a#heading=h.lkllwrkuv6vx>to the Parquet format. (in progress of adding to the official doc PR #220 <https://github.com/ apache/parquet-site/pull/220>)

This doc specifically focuses on the process of rolling out changes to the format in existing environments where multiple readers and writers are involved that are updated independently.

When changes are forward compatible, we do not need to worry much about versioning as they can be safely applied without breaking old readers. Therefore, this doc focuses on forward incompatible changes.


  Goal

Clarify the use case before resuming discussion on the Implementation details tab <https://docs.google.com/document/ d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit? tab=t.nywy9gjvpwqf#heading=h.roz9z1ew7bl8>.


  What is a version number?

A version number is a short hand to define a set of new forward incompatible features in addition to the features of the previous version of the format.


  Rolling out a forward incompatible change to the format

To start with I am focusing on the ‘partial compatibility’ case. Although ‘fully incompatible’ changes are covered as well, see the last section (3).

A user has more than one engine reading and/or writing the same Parquet based tables.

Examples in alphabetical order:

OSS DataFusion, DuckDB, Spark, Trino, …

Vendors: BigQuery, Databricks, Snowflake, ...

Not all engines will support the new change in the format at the same time. Therefore we typically deploy a version that can read a version of Parquet and will hold off writing this new version until all readers have been updated. This avoids failed reads because of an unsupported new feature (ex: new encoding)

We could technically handle this on a change per change basis.

 1.


        Rolling out on a change per change basis

For example:

  *

    The user uses engine A and B.

  *

    A new forward incompatible feature (ex: ALP encoding) is introduced
    in the format

  *

    The user deploys a new version of engine A that supports ALP
    encoding and specifically turns off writing columns in ALP.

  *

    The user deploys a new version of engine B that supports ALP. Now
    all engines currently in use by this user support ALP.

  *

    The user turns on ALP on all engines.


      Upsides

  *

    This works and is the most granular we can go.

  *

    We currently introduce new features (like ALP encoding) disabled for
    write by default to allow for this to be the default roll out plan.

  *

    Low maintainer effort.


      Downsides

  *

    This forces users to understand the evolution of the format in all
    its details and granularity when they really just want to update
    everything to the latest version.

  *

    Vendors don’t have a good way to stay in sync and avoid supporting
    different subsets of the format.

  *

    It pushes to the user to figure out the common subset of features
    supported for their specific case.

  *

    It also doesn’t define a path to make those new features enabled by
    default without involving long timeframes (in years).


 2.


        Rolling out using versions

For those reasons, the use of a version number is a simplifier that decouples introduction of forward incompatible features from a roll out schedule.

When a new version number is introduced, it groups together a specific list of forward incompatible features.

Vendors and OSS projects alike can advertise what version of parquet they support. This translates directly to the set of features they support.


 From a format change this happens as follows:

   *

    Parquet is in version 3 (just for the sake of the example)

  *

    ALP encoding is introduced and is not yet part of a specific version
    (it is “in preview”).

  *

    Implementers are encouraged to provide read support for this new
    encoding.

  *

    Parquet version 4 (again just as an example) is released, including
    ALP encoding.

  *

    Implementers are asked to have a flag to pin the version of Parquet
    on a specific version (ex: version 3) for writes even if they
    support the newer version (ex: version 4).

  *

    Implementers are encouraged to enable writing ALP by default in
    their support of Parquet version 4.

  *

    Implementers can not claim they support parquet version 4 if they
    don’t support reading all the new forward incompatible features of
    this version. (including ALP in this example)

For the user this simplifies rolling out as follows:

  *

    The user environment is pinned to Parquet version 3 for writes.
    (still using engine A and B)

  *

    Parquet Version 4 is released (introduces ALP, …)

  *

    The user deploys a new version of engine A that supports Parquet 4
    and keeps the version pinned to Parquet version 3..

  *

    The user deploys a new version of engine B that supports Parquet 4.
    Now all engines currently in use by this user support Parquet version 4.

  *

    The user moves the pinned Parquet version to 4 on all engines.


      Downsides

  *

    Introduction of an additional concept for maintainers.


      Upsides

  *

    There is an incentive for engines to support the latest version of
    Parquet

  *

    Vendors have ample time to implement the new feature before it is
    officially released in the next version of the format.

  *

    Users just need to increment a version number to the maximum version
    supported by all the engines they used. It is clear which engine is
    behind which creates healthy pressure on the community to upgrade.
    No need to understand the nuances of new features nor in which order
    they have been released.

  *

    There is a clear mechanism to make those new features on by default
    and accelerate their adoption while allowing a transition period
    when not all engines in use support it.


 3.


        The special case of the magic number

In some rare occasions, we need to change the magic number <https:// en.wikipedia.org/wiki/List_of_file_signatures>for the Parquet file. This is used specifically when it is not possible for an old reader to correctly read from the file. We will change the magic number for example when we will make the new modular footer the new default.

Currently the magic number is either:

  *

      “PAR1” for the initial thrift based parquet metadata spec and any
    subsequent forward compatible changes (adding optional fields to the
    thrift spec).

  *

    “PARE” for encrypted parquet files.

To avoid any confusion with the parquet version number, I recommend avoiding a number in the future. When implementing the modular footer we can move to a “PARM” magic number. This can be included in a regular Parquet version increase per section (2) above. For example, Parquet version 5 could include moving the magic number to “PARM”.



On Fri, Nov 20, 2026 at 4:45 PM Julien Le Dem <[email protected] <mailto:[email protected]>> wrote:

    I moved this to parquet-format per the discussion in the PR
    https://github.com/apache/parquet-format/pull/645 <https://
    github.com/apache/parquet-format/pull/645>

    On Tue, Nov 17, 2026 at 10:28 AM Julien Le Dem
    <[email protected]
    <mailto:[email protected]>> wrote:

        FYI, I have addressed feedback and answered questions on the PR.
        https://github.com/apache/parquet-site/pull/220 <https://
        github.com/apache/parquet-site/pull/220>

        On Mon, Nov 9, 2026 at 6:18 PM Julien Le Dem
        <[email protected]
        <mailto:[email protected]>> wrote:

            I presented this at the biweekly sync and I am proposing to
            add it to the doc.
            https://github.com/apache/parquet-site/pull/220 <https://
            github.com/apache/parquet-site/pull/220>

            On Thu, Oct 29, 2026 at 10:54 AM Julien Le Dem
            <[email protected]
            <mailto:[email protected]>> wrote:

                Here is the content of the doc <https://docs.google.com/
                document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/
                edit?tab=t.8veepidgez8a>.Making changes to the format


                  Scope

                When making a change to the Parquet Format, we have to
                manage problems that arise from the reader and the
                writer implementing a different version of the spec.


                This document defines categories of changes to the
                Parquet Format, and proposes a set of criteria to
                evaluate future potential changes.


                  Definitions

                A change to the parquet format can have the following
                properties:

                Compatibility:We narrow this down to producing the exact
                same tabular data while possibly ignoring secondary data
                structures (like bloom filter, indices, stats, …).
                Compatible implies Correct.

                  *

                    Backward compatibility: new readers can read files
                    written by older writers.

                  *

                    Forward compatibility: old readers can read files
                    written by newer writers.

                Correctness:Not unknowingly reading data incorrectly

                  *

                    Incorrect read: a reader producing different data
                    than the writer intended.

                  *

                    Correct failed read: a reader producing an error
                    when it can not read the data in the file.

                Partial Compatibility:when the reader can read a subset
                of the file (and knows which subset)

                  *

                    If only the subset of columns supported is accessed,
                    then read is successful.

                  *

                    The reader can elect to read only the subset of the
                    data it understands depending on the use case.

                Screenshot 2026-10-29 at 10.50.18 AM.png


                  Dealing with incompatible changes


                    Backward compatibility

                When making a change to the spec, the new readers are
                aware of all the past specs and therefore backward
                compatibility is usually required.


                Occasionally, we may drop support of a feature for
                technical reasons (ex: dropping LZO support for read
                because of the additional complexity of linking
                libraries). This is usually for features that are
                practically not used anymore (or close). In such a case,
                new readers will fail with a clear error and not produce
                correctness issues.


                In conclusion, a change is either always backward
                compatible or occasionally backward incompatible and
                causes failure with an error and no correctness issues.


                    Forward compatibility

                Old readers, however, are not aware of future spec changes.


                      Reader behavior

                ordered by desirability

                Name

                        

                Possible behaviors of the reader

                        

                When used

                        

                Example

                        

                User experience

                Correct Read

                        

                Reads data correctly.
                Sometimes ignores supplemental data structures it
                doesn’t know about.

                        

                This is the most frequent case for forward
                compatibility. We add new features that do not prevent
                old readers from reading the data correctly even though
                they might not take advantage of those new features.

                        

                You can read the data correctly and not understand bloom
                filters or statistics

                        

                Forward compatible:The format evolves seamlessly


                Correct Partial Read

                        

                Reads correctly a subset of the columns as long as the
                unsupported columns don’t need to be accessed and
                correctly fails otherwise.

                        

                When a feature cannot be introduced without breaking
                forward compatibility (ex: new encoding), old readers
                are able to read files and columns that do not use that
                new feature and know they can not read the ones that do
                and why.

                        

                ALP: Old readers can read all the columns that don’t use
                this encoding that applies only to floating point columns.

                        

                Forward incompatible but correct:Old readers will
                explain failed reads and preserve correctness.

                New writers can be configured to hold off on using new
                features until all readers support it.

                Correct Failure to Read

                        

                Can’t read data at all but understands why.

                        

                When a feature cannot be introduced without breaking
                file-level compatibility, old readers know they can not
                read the file.

                        

                Changing the footer format. The reader has no granular
                information and fails on the magic number change.

                Best Effort Read

                        

                Reads the subset of data it understands and ignores the
                rest.

                        

                Similar to Correct Partial Reads. In cases where this
                does not lead to data loss, readers can elect to read
                only the subset of the file they can read correctly.
                This is different from a correct partial read as a
                “select *” would return only the columns it understands
                instead of failing for not reading a subset of the columns.

                        

                “Select *” Ignoring columns encoded in ALP and returning
                the subset of the file that is readable.

                        

                Forward incompatible best effort:Old readers can elect
                to read in best effort the subset of the data. Not
                reading incorrect data but would lead to dropping data
                if the output was saved without understanding the
                difference with “correct partial read”

                Incorrect Read

                        

                Reads data but unknowingly misinterprets it (ex:
                semantic changes to an existing field like stats)

                        

                When an old reader reads incorrect data because a
                semantic change is indistinguishable and they have no
                way to know their read is incorrect.
                This should never happen

                        

                We avoid this case at all costs.

                        

                Incorrect:Silently reading the data incorrectly.


                      Proposal: Evaluation system for changes to Parquet

                When making a change to the format we optimize for that
                user experience.

                Making changes to the Parquet format falls in 3 categories.

                  *

                    Forward compatible: Correct Read

                  *

                    Forward incompatible:

                      o

                        The metadata describes what can be read and not
                        read: The reader decides between Correct Partial
                        Readand Best Effort Read

                      o

                        The metadata doesn’t describe what can be read
                        and not read (this happens for example with the
                        new footer format): Correct Failure to Read

                      o

                        We don’t make semantic changes that would cause
                        old readers to produce an Incorrect Read.

                Screenshot 2026-10-29 at 10.51.50 AM.png

                In particular that means that we avoid changing the
                semantics of an existing field. For example changing a
                sort order that changes the min-max statistics. Instead
                it can be made forward compatible by adding new metadata
                fields. Making a forward compatible change like this is
                usually preferable to breaking



                On Wed, Oct 28, 2026 at 10:34 AM Julien Le Dem
                <[email protected]
                <mailto:[email protected]>> wrote:

                    Following the thread that Alkis started <https://
                    lists.apache.org/thread.html/
                    qk8hxpvycy6161lqop1bynr3yt028m7t>(Thank you
                    Alkis!) and the follow up conversations in the sync
                    and otherwise, I have added a tab to the doc that
                    formalizes how we categorize changes to the format,
                    the corresponding impact on the user experience and
                    how we minimize disruption.

                    This is intentionally focusing on describing changes
                    without going further (yet) in the implementation
                    discussion. I'd like for us to converge on that
                    first before we resume the implementation discussion
                    (previous tab in the same doc)

                    I think this should give us a solid common ground to
                    resume the conversation. Please comment in the doc here:
                    https://docs.google.com/document/
                    d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit?
                    tab=t.8veepidgez8a <https://docs.google.com/
                    document/
                    d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit?
                    tab=t.8veepidgez8a>



Reply via email to