pub fn load_partition_metadata(
pool: &Pool<Postgres>,
file_path: &str,
cache: Option<&MetadataCache>,
) -> impl Future<Output = Result<Arc<ParquetMetaData>, Error>>Expand description
Load partition metadata by file path from the dedicated metadata table
Dispatches to appropriate parser based on partition_format_version:
- Version 1: Arrow 56.0 format, uses legacy parser with num_rows injection (requires additional query)
- Version 2: Arrow 57.0 format, uses standard parser (fast path, no join)
If a cache is provided, checks it first and stores results after loading.