npawar commented on a change in pull request #6466:
URL: https://github.com/apache/incubator-pinot/pull/6466#discussion_r577120279



##########
File path: 
pinot-core/src/main/java/org/apache/pinot/core/indexsegment/immutable/ImmutableSegmentImpl.java
##########
@@ -115,7 +116,11 @@ public DataSource getDataSource(String column) {
     ColumnMetadata columnMetadata = 
_segmentMetadata.getColumnMetadataFor(column);
     Preconditions.checkNotNull(columnMetadata,
         "ColumnMetadata for " + column + " should not be null. " + 
"Potentially invalid column name specified.");
-    return new ImmutableDataSource(columnMetadata, 
_indexContainerMap.get(column));
+    if (_indexContainerMap.containsKey(column)) {

Review comment:
       Nvm, I understood what you meant




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to