Skip to content

Commit

Permalink
Parquet writer: write page index
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 1, 2025
1 parent 2c3a671 commit 593ad59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ogr/ogrsf_frmts/parquet/ogrparquetwriterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ bool OGRParquetWriterLayer::SetOptions(CSLConstList papszOptions,
if (!CPLTestBool(CSLFetchNameValueDef(papszOptions, "STATISTICS", "YES")))
m_oWriterPropertiesBuilder.disable_statistics();

#if PARQUET_VERSION_MAJOR >= 12
// Undocumented option. Not clear it is useful to disable it.
if (CPLTestBool(CSLFetchNameValueDef(papszOptions, "PAGE_INDEX", "YES")))
m_oWriterPropertiesBuilder.enable_write_page_index();
#endif

if (m_eGeomEncoding == OGRArrowGeomEncoding::WKB && eGType != wkbNone)
{
m_oWriterPropertiesBuilder.disable_statistics(
Expand Down

0 comments on commit 593ad59

Please sign in to comment.