Skip to content

[core][python] Add model metadata APIs - #10881

Open
XiaoHongbo-Hope wants to merge 9 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/predict-submit-20261030
Open

XiaoHongbo-Hope wants to merge 9 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/predict-submit-20261030

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Add database-scoped Model metadata APIs to Java and PyPaimon.

What changed

  • Add create, get, list, and drop Model metadata APIs.
  • Define the shared REST/OpenAPI contract and DLF action mapping.
  • Store provider, provider model name, input schema, optional fixed outputs, and provider properties.
  • Validate Model fields consistently in Java and Python.
  • Support idempotent create and drop through ignore_if_exists and ignore_if_not_exists.
  • Omit absent optional fields and serialize empty model lists as [].
  • Keep prompts, credentials, and prediction execution outside Model metadata.

Design references

Prediction submission is deferred to a follow-up.

Tests

  • Java paimon-api: 270 passed
  • Python Model tests: 5 passed
  • Non-fast paimon-core reactor compile: BUILD SUCCESS

@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Add experimental asynchronous table prediction submission [python] Add asynchronous table prediction submission Nov 1, 2026
@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Add asynchronous table prediction submission [python] Add catalog model metadata APIs Nov 4, 2026
@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Add catalog model metadata APIs [python] Add model metadata APIs Nov 4, 2026
@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Add model metadata APIs Add model metadata APIs Nov 4, 2026
@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as ready for review November 5, 2026 07:48
@XiaoHongbo-Hope XiaoHongbo-Hope changed the title Add model metadata APIs [core][python] Add model metadata APIs Nov 5, 2026
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.

1 participant