Hi all, +1 to the proposal. Encrypting the levels with the values closes the null and list structure leak, puts the levels under the GCM tag, and aligns parquet-java with the other implementations. Reading both layouts in 1.19.0 is a sensible transition.
One data-correctness concern, with details on the PR: with AES_GCM_CTR_V1, a 1.18 reader on a new-layout file silently returns wrong nulls and values for flat optional columns (GCM fails loudly). Could we give writers an opt-out for a release or two? https://github.com/apache/parquet-java/pull/3935#discussion_r4589794755 Thanks, Xinli
