Skip to content

[parquet-geospatial] Add geo_stats_accumulator_factory to WriterProperties #10312

Description

@brawer

Is your feature request related to a problem or challenge?

Currently, applications can inject a custom GeoStatsAccumulator by calling init_geo_stats_accumulator_factory(). Such global state, which can only be initalized once per process, is not ideal from a design perspective. In particular, it makes it difficult to write libraries that produce a geospatial Parquet file under the hood; multiple libraries may want to register their own accumulator, but they can’t because the state is global. Admittedly this is a somewhat theoretical problem.

Describe the solution you'd like

Proposal:

  • Add geo_stats_accumulator_factory to WriterProperties (and its builder), gated on the geospatial feature flag.
  • Mark the current init_geo_stats_accumulator_factory() as deprecated, and remove it at some later point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions