Skip to content

use separated thread in ffi exporter#788

Merged
lihao712 merged 1 commit intomasterfrom
dev-ffi-export-thread
Feb 5, 2025
Merged

use separated thread in ffi exporter#788
lihao712 merged 1 commit intomasterfrom
dev-ffi-export-thread

Conversation

@richox
Copy link
Contributor

@richox richox commented Jan 22, 2025

as described in #748, ArrowFFIExporter needs to poll rows iterator by wrapping hadoop ugi.doAs method. current solution wraps each .hasNext() and .next() and introduces extra costs.

this pr adds a separated thread for polling rows iterator. so we don't call doAs on each record batch.

@richox richox force-pushed the dev-ffi-export-thread branch 8 times, most recently from 6f6df99 to 16e8235 Compare January 23, 2025 16:09
@richox richox force-pushed the dev-ffi-export-thread branch from 16e8235 to 3d891d0 Compare January 23, 2025 17:16
@lihao712 lihao712 merged commit f6095a5 into master Feb 5, 2025
618 checks passed
@richox richox mentioned this pull request Apr 27, 2025
@cxzl25 cxzl25 deleted the dev-ffi-export-thread branch September 5, 2025 08:37
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