yashmayya opened a new issue, #20388:
URL: https://github.com/apache/pinot/issues/20388
A join that has no equi keys and a `FULL` join type runs on one worker
(`isRequiresSingletonInstance()`). When one side of that join is a table with
`tableOptions(is_replicated='true')`, planning fails with a
`NullPointerException`.
**Query**
```sql
SELECT a.col1, b.col3
FROM a FULL JOIN b /*+ tableOptions(is_replicated='true') */ ON a.col3 >
b.col3
```
**Error**
```
java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because
"senderServerMap" is null
at
org.apache.pinot.query.planner.physical.MailboxAssignmentVisitor.process(MailboxAssignmentVisitor.java)
```
**Cause**
`WorkerManager.assignWorkersToIntermediateFragment()` assigns the workers of
a replicated leaf in the loop at the end of the method. The
`isRequiresSingletonInstance()` branch returns before that loop. The replicated
leaf then has no worker map, and `MailboxAssignmentVisitor` reads it.
The result is the same with `useLeafServerForIntermediateStage` on and off.
**Expected**
The singleton branch also assigns its replicated leaf children. One worker
on a server that hosts the table is sufficient, because the stage has one
worker.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]