Skip to content

[FLINK-39260][python] Support multiple compression format for python.files config option#27780

Open
raoraoxiong wants to merge 1 commit intoapache:masterfrom
raoraoxiong:FLINK-39260
Open

[FLINK-39260][python] Support multiple compression format for python.files config option#27780
raoraoxiong wants to merge 1 commit intoapache:masterfrom
raoraoxiong:FLINK-39260

Conversation

@raoraoxiong
Copy link

What is the purpose of the change

Support multiple compression format for python.files config option and fix the issue that
the use of zip format files will appear soft link file decompression exception, file permissions lost problem

Brief change log

  • Add isCompressedFile and getBaseNameWithoutExtension function to identify compression file and extract file name without extension
  • Replace FileUtils.expandDirectory with CompressionUtils.extractFile to support multiple format decompression

Verifying this change

Please make sure both new and modified tests in this PR follow the conventions for tests defined in our code quality guide.

This change is already covered by existing tests, such as (CompressionUtilsTest).

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot
Copy link
Collaborator

flinkbot commented Mar 17, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants