apache / apache/paimon

[Feature] Add sdk version information to REST User-Agent

Open
#8,543 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Motivation

PyPaimon REST requests currently use the default `python-requests` User-Agent,
which does not identify the PyPaimon or Python version and makes troubleshooting
client compatibility and upgrades difficult.

### Solution

Use `header.User-Agent`, consistent with Java, and provide these defaults:

- REST: `PyPaimon/ Python/`
- PVFS: `PythonPVFS PyPaimon/ Python/`

Explicitly configured User-Agent values are preserved. Version lookup failures
fall back to `unknown` without affecting requests.

### Anything else?

_No response_

### Are you willing to submit a PR?

- [x] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the PyPaimon REST and PVFS request code that constructs User-Agent headers, then trace how SDK and Python versions are obtained. Verify that the specified defaults, explicit User-Agent preservation, and unknown-version fallback work without affecting requests, using the repository's existing REST or PVFS tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.