Skip to content

Commit

Permalink
Add arrow stream node (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored and zhejiangxiaomai committed Apr 20, 2023
1 parent 2f52e84 commit e109591
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions velox/exec/LocalPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ uint32_t maxDrivers(const DriverFactory& driverFactory) {
} else if (std::dynamic_pointer_cast<const core::ArrowStreamNode>(node)) {
// ArrowStream node must run single-threaded.
return 1;
} else if (
auto arrowStream =
std::dynamic_pointer_cast<const core::ArrowStreamNode>(node)) {
// ArrowStream node must run single-threaded, unless in test context.
if (!arrowStream->isParallelizable()) {
return 1;
}
} else if (
auto limit = std::dynamic_pointer_cast<const core::LimitNode>(node)) {
// final limit must run single-threaded
Expand Down

0 comments on commit e109591

Please sign in to comment.