Skip to content

Spark table purges and some procedures fail with encrypted tables due to missing metadata table support #14764

@smaheshwar-pltr

Description

@smaheshwar-pltr

Feature Request / Improvement

#14763 shows a failing test.

The Spark purge codepath and other maintenance procedures require finding reachable files, using metadata tables. This doesn't work for encrypted tables currently.

Concretely, there are a couple of issues:

  1. The AllManifestsTableScan dispatches manifest lists reads to executors, however the StandardEncryptionManager's fields required for that are not serializable
  2. Finding content files requires reading manifests obtained from the manifest metadata tables here, but the ManifestFileBean does not include encryption key metadata to permit decryption during the read

Query engine

None

Willingness to contribute

  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementPR that improves existing functionality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions