abhishekagarwal87 opened a new pull request, #14021:
URL: https://github.com/apache/druid/pull/14021
Queries containing a JOIN or UNNEST and involving an interval with a
tombstone segment, can fail with the following exception
```
Caused by: java.lang.UnsupportedOperationException
at
org.apache.druid.segment.loading.TombstoneSegmentizerFactory$1.getColumnHolder(TombstoneSegmentizerFactory.java:120)
~[druid-processing-xxxxx.jar:xxxxx]
at
org.apache.druid.segment.QueryableIndexStorageAdapter.populateMinMaxTime(QueryableIndexStorageAdapter.java:292)
~[druid-processing-xxxxx.jar:xxxxx]
at
org.apache.druid.segment.QueryableIndexStorageAdapter.getMaxTime(QueryableIndexStorageAdapter.java:137)
~[druid-processing-xxxxx.jar:xxxxx]
at
org.apache.druid.segment.join.HashJoinSegmentStorageAdapter.getMaxTime(HashJoinSegmentStorageAdapter.java:150)
~[druid-processing-xxxxx.jar:xxxxx]
at
org.apache.druid.server.coordination.ServerManager.buildAndDecorateQueryRunner(ServerManager.java:309)
~[druid-server-xxxxx.jar:xxxxx]
at
org.apache.druid.server.coordination.ServerManager.buildQueryRunnerForSegment(ServerManager.java:263)
~[druid-server-xxxxx.jar:xxxxx]
at
org.apache.druid.server.coordination.ServerManager.lambda$getQueryRunnerForSegments$2(ServerManager.java:216)
~[druid-server-xxxxx.jar:xxxxx]
```
It's because logical segments return a null queryable index. so
ServerManager doesn't short-circuit query execution for the logical segments
over a tombstone segment. This PR moves the `isFromTombstone` from
QueryableIndex to StorageAdapter instead.
--
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]