Skip to content

Fix #5549: Fix run_in_spark crash with new-style services (APIMethod)#5638

Draft
Mr-Neutr0n wants to merge 2 commits into
bentoml:mainfrom
Mr-Neutr0n:agent/issue-5549-fix-runinspark-crash-w
Draft

Fix #5549: Fix run_in_spark crash with new-style services (APIMethod)#5638
Mr-Neutr0n wants to merge 2 commits into
bentoml:mainfrom
Mr-Neutr0n:agent/issue-5549-fix-runinspark-crash-w

Conversation

@Mr-Neutr0n

Copy link
Copy Markdown

Fixes #5549

Fixed run_in_spark crash with new-style @bentoml.service() services (APIMethod objects lack .input/.output attributes) by adding _is_legacy_service() detection, _result_to_record_batch() helper, branching _get_process() to use _bentoml_impl.client.SyncHTTPClient with per-row RecordBatch→pandas→kwargs conversion for new-style services, and requiring explicit output_schema for new-style services with a clear error message.

Local test infra unavailable in CI sandbox.


This change was prepared with AI assistance under human direction and review.

Mr-Neutr0n and others added 2 commits June 19, 2026 09:28
…Method)

Signed-off-by: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.com>
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