Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pypaimon

Latest version: v2.1.1

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: apachepaimon, jingsongli, yuzelin
2 Versions
360.0K Downloads

Scan summary

pypaimon was last scanned on 25 Nov 2026 at version 2.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 2.1.1.
  • Downloads: 359,997 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.1.1 LATEST 25 Nov 2026 No rules fired
2.1.0 12 Oct 2026 No rules fired

No rules fired in 2.1.1

Findings

Findings for v2.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Paimon

License

PyPaimon

This PyPi package contains the Python APIs for using Paimon.

Version

Pypaimon requires Python 3.6+.

Build

Run from paimon-python/ with pip supporting dependency groups.

Normal build:

python -m pip install --group build
python -m build

Development build (editable installation with development dependencies):

python -m pip install -e . --group dev
python -m build

Both produce a source archive and wheel in dist/.

OSS metadata commits

Install pypaimon[oss] (legacy PyArrow data access) or pypaimon[jindo] (Jindo data access). Both include oss2 for atomic metadata writes. Configure fs.oss.accessKeyId, fs.oss.accessKeySecret and fs.oss.endpoint, plus fs.oss.securityToken when using STS. An endpoint without a scheme uses HTTPS for metadata writes. Credentials supplied only through an underlying filesystem's credential provider must also be supplied through these options.

Metadata requests always use OSS Signature V4 for both AK and STS credentials, independently of the Jindo data-access signer setting. Set fs.oss.region to the bucket's region ID, such as cn-hangzhou. If unset, it is inferred from standard oss-<region>.aliyuncs.com or oss-<region>-internal.aliyuncs.com endpoints. Other endpoints, including acceleration endpoints, require an explicit region.

Atomic metadata PUTs also forward the OSS server-side encryption options, using the same resolution as Java OSSFileIO:

Option Behavior
fs.oss.server-side-encryption AES256, KMS or SM4 (case-insensitive)
fs.oss.server-side-encryption-key-id KMS key ID; implies KMS if the method is unset
fs.oss.server-side-data-encryption SM4 with KMS; implies KMS if the method is unset
fs.oss.server-side-encryption-algorithm Legacy method fallback, used only if all three options above are unset

The first three options reject blank values and invalid combinations before any request is sent. If no encryption options are set, no encryption headers are added and OSS applies the bucket's default policy. These settings cover the atomic metadata PUT path; ordinary data writes still use the configured PyArrow/Jindo filesystem and its encryption capabilities.

For oss:// paths, FileIO.get selects OssFileIO, a thin PyArrowFileIO subclass that overrides atomic creation. Filesystem initialization, path handling, and ordinary PyArrow/Jindo file operations are inherited unchanged. Use FileIO.get(path, options) or construct OssFileIO explicitly for OSS atomic writes. REST token refresh and ResolvingFileIO also route atomic writes through this implementation.

When the bucket is confirmed unversioned, OssFileIO.try_to_write_atomic uses a single OSS PUT with x-oss-forbid-overwrite=true. Exactly one writer can create a given object; FileAlreadyExists returns False so snapshot commits can retry. Other SDK errors are raised as OSError, retaining their cause for diagnostics. A lost PUT response is not retried by the SDK; the snapshot commit loop checks the commit user and identifier before retrying.

The vendor SDK is an optional backend dependency, imported only for OSS atomic writes. The common FileIO API and Paimon table format remain independent of it. This implementation uses OSS-specific conditional creation; it does not provide the same atomic-write capability for every object store.

Conditional creation requires a bucket that has never enabled versioning. The first atomic write on each OssFileIO instance checks GetBucketVersioning and caches the result, including the query-denied fallback. Concurrent first writes may repeat the check and warning. Query errors other than 403 AccessDenied are not cached. If versioning is Enabled/Suspended, the state is unrecognized, or the query returns 403 AccessDenied, the operation logs a warning when caching the fallback and uses the inherited PyArrow/Jindo temporary-file-and-rename path. This preserves legacy writes without making version-query permission mandatory, but the fallback does not guarantee safe concurrent commits. It also retains the existing backend's encryption behavior rather than applying the conditional PUT's OSS SSE headers. Invalid credentials, expired tokens, missing buckets, and other query failures still propagate as errors.

Grant oss:GetBucketVersioning and keep versioning disabled to use conditional creation. Keep bucket versioning and version-query permissions unchanged for the instance's lifetime; recreate the FileIO after changing them. A configuration change is not guaranteed to produce an error and can invalidate the conditional-write guarantee.

All concurrent writers must use conditional creation. Older Python clients or other clients that overwrite snapshot objects can still overwrite a successful commit. This change does not add conditional writes for other object stores.

Row ID column updates

For a batch update of selected columns in a data-evolution table with row tracking, pass an Arrow table containing _ROW_ID and the columns to update. Create the updater and committer from the same builder so they share a commit user:

builder = table.new_batch_write_builder()
updater = builder.new_update().new_update_by_row_id()
messages = updater.update_columns(updates, ["name"])
commit = builder.new_commit()
try:
    commit.commit(messages)
finally:
    commit.close()

For stream updates, use table.new_stream_write_builder() and pass the stream commit identifier to new_update().new_update_by_row_id(commit_identifier).

Parquet page-index reads

For row-tracking tables with a Parquet OffsetIndex, PyPaimon can read a contiguous _ROW_ID range, including standard VARIANT columns, without decoding the full row group. This is enabled by default and can be disabled with the table option:

table = table.copy({"parquet.filter.columnindex.enabled": "false"})

Unsupported reads use the normal path. Reading fewer bytes may require more object-store requests.

Native write and commit

PyPaimon can write Arrow batches through the optional pypaimon-rust runtime. Enable it on a table independently of native commit:

native_table = table.copy({"write.native.enabled": "true",
                           "commit.native.enabled": "true"})
builder = native_table.new_batch_write_builder()
writer, commit = builder.new_write(), builder.new_commit()
try:
    writer.write_arrow(data)
    commit.commit(writer.prepare_commit())
finally:
    writer.close()
    commit.close()

The native writer returns ordinary PyPaimon commit messages, so the Python committer also works when commit.native.enabled is false. Batch overwrite and reusable stream writers retain the builder's commit user and identifier. Native write supports Parquet append, primary-key and data-evolution tables, including top-level scalar BLOB Arrow columns, on the same filesystem/JDBC publication route as native commit. ARRAY/MAP BLOB, video and optional data-evolution row sidecars select the Python writer. Writer methods requiring Python's specialized path select the Python writer before native data is written. If the runtime or table route is unavailable, write uses Python. Once Rust starts writing a batch, errors propagate without retrying that batch through Python.

Batch and stream merge_into also use Rust core for eligible data-evolution Parquet tables when write.native.enabled=true. Existing WhenMatched and WhenNotMatched clauses accept Arrow/pandas input, Paimon table sources, or self-merge on _ROW_ID. Core pins the target snapshot, matches keys, selects the first satisfied clause and prepares updates, deletion vectors and inserts. SQL conditions, including subqueries, execute in the Rust DataFusion adapter; Python transports the normalized clauses and returned commit messages. Conditional MERGE requires Python 3.10+ and the existing pypaimon[sql] extra, which installs both Python DataFusion and pypaimon-rust. Shared clause validation checks that dependency before native execution. NULL keys do not match. Multiple source rows matching a target are rejected before action conditions, except for a sole unconditional DELETE, following Paimon Spark MERGE. For table sources, core independently pins the selected source branch/snapshot and reads only keys and referenced columns. Append and primary-key sources do not require data evolution. Source scan options select the same point in time on Python and native paths. Numeric incremental-between-timestamp source windows are resolved and read by core. Non-REST Blob views requiring catalog resolution and packed-video inserts use the Python path selected before native execution starts. Native failures propagate without Python retry or deleting files from earlier prepared actions.

Python and native writers use Java's escaped partition directories for data, changelog, Blob and row sidecar files, including external locations. Both planners, file-range metadata, commit callbacks and explicit aborts use the same path rules. Row sidecar reads resolve that path even when the primary file is unavailable.

MAP columns configured with fields.<name>.map.storage-layout=shared-shredding also use native Parquet writes and data-evolution updates, including predicate updates and upserts. Rust applies Java's plain, sequential and lru column placement policies (lru by default), and adapts the physical column count between completed files. Files remain readable by the Python reader, including literal MAP-key projections. Shared-shredding requires none, lz4 or zstd compression.

Primary-key dynamic buckets (bucket=-1, with partition fields included in the primary key) also support native writes. HASH indexes are restored across writer restarts; dynamic-bucket.max-buckets bounds bucket growth and reuses existing buckets after that limit. Dynamic buckets use the trimmed primary key, so bucket-key must not be configured. As in Java, each bucket must have one writer owner: a HASH ADD replaces the complete previous index and does not carry a concurrent-writer baseline. Partitions with existing data but missing HASH indexes must be rewritten before incremental writes.

Cross-partition primary keys (bucket=-1, with some partition columns outside of the primary key) also support native writes. Rust rebuilds the global index from live rows on writer startup and preserves the full primary key. Deduplicate moves a key by deleting its old location; first-row keeps its first partition; partial-update and aggregation apply changes in the existing partition, matching Java. Use one writer owner for the global key space. Index TTL is not supported, and sequence.field and bucket-key are invalid for this mode. The Python writer does not implement cross-partition routing, so this mode requires the native runtime.

Ordinary postpone writes (bucket=-2) support native Parquet deduplicate writes without BLOB columns. Pending files retain input order, row kinds and duplicates, and roll at a batch boundary after reaching target-file-row-num. Normal scans expose only real buckets after deferred bucket assignment. Other postpone merge engines, BLOB writes use the Python writer.

The fixed-bucket postpone builder uses native Parquet writes for deduplicate, first-row, partial-update and aggregation when supplied with a shared bucket plan or postpone.default-bucket-num. The default count is used exactly, without rounding or applying the inference limit. Append reuses each existing partition's bucket count; overwrite uses the new count for overwritten partitions. Pending files may coexist with real buckets and remain available for later assignment.

from pypaimon.write.postpone_bucket import PostponeBucketPlan

# A driver can serialize this small plan and give it to every worker.
plan = PostponeBucketPlan({("2026-10-01",): 3, ("2026-10-02",): 5})
builder = table.new_postpone_fixed_bucket_write_builder().with_bucket_plan(plan)
writer = builder.new_write()
try:
    writer.write_arrow(arrow_table)
    messages = writer.prepare_commit()
finally:
    writer.close()
builder.new_commit().commit(messages)

All rows for one partition/bucket must have one writer owner. Python and native committers reject overlapping owners or writes that became stale after their baseline snapshot. Different real buckets and pending files can be appended concurrently. Overwrite detects concurrent changes to any overwritten partition. A shared plan must cover every input partition; a configured default does not fill missing entries in an explicit plan. Ray workers use native routing and writing with the driver's shared plan.

Local automatic size estimation still uses the Python planner. Fixed-bucket native writes currently exclude BLOB and deletion-vector tables. They do not perform staging, compaction or automatic rescaling of existing partitions.

Native writes honor data-file.path-directory and the configured data-file.external-paths strategy. Existing files keep their recorded locations when the write destinations change. Python and native readers and committers can exchange these files, including external data files and their index sidecars.

BLOB Arrow values may contain payload bytes or serialized descriptors. Fields listed in blob-descriptor-field remain inline and require descriptors. HTTP(S) references use decoded response streams, including gzip and deflate. Blob files roll by payload size, independently of the normal Parquet files. Python Blob row objects can provide custom streams or URI readers; write_row on a BLOB table selects the Python writer before any native data is written. Switching to row writes after native Arrow writes is rejected. Use write.native.enabled=false when mixing Arrow batches and Python Blob objects in one writer.

A successful prepare_commit() transfers file ownership to the caller. Writer abort() and close() preserve those prepared files and may clean only outputs still owned by the writer. Explicit commit.abort(messages) deletes newly written data, changelog, sidecars and added indexes, matching Java's Paimon Table committer. Call it only when those messages are known to be uncommitted and will never be submitted. Never call it after a commit with an unknown outcome: publication may have succeeded before its response failed. Internal failure paths preserve prepared files instead of calling commit abort.

Both native options are disabled by default.

Native commit

PyPaimon can submit append and batch overwrite commits through the optional pypaimon-rust runtime. Enable it independently of native planning and reading:

native_table = table.copy({"commit.native.enabled": "true"})
builder = native_table.new_batch_write_builder()
writer, commit = builder.new_write(), builder.new_commit()
try:
    writer.write_arrow(data)
    commit.commit(writer.prepare_commit())
finally:
    writer.close()
    commit.close()

When only native commit is enabled, the Python writer produces files. Its commit messages cross the Java v14 wire format into CommitMessage.deserialize() and are committed by Rust. Batch and stream append commits retain the Python builder's commit user, identifier, empty-commit option, and batch one-shot lifecycle. Explicit abort also supports native cleanup of uncommitted files.

For batch overwrite, configure the Python builder as usual:

builder = native_table.new_batch_write_builder().overwrite({"pt": "2026-09-22"})

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases pypaimon

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229