maedhroz commented on code in PR #4017:
URL: https://github.com/apache/cassandra/pull/4017#discussion_r2044817204


##########
src/java/org/apache/cassandra/index/sai/utils/IndexTermType.java:
##########
@@ -144,7 +144,7 @@ private IndexTermType(ColumnMetadata columnMetadata, 
List<ColumnMetadata> partit
 
         AbstractType<?> baseType = indexType.unwrap();
 
-        if (baseType.subTypes().isEmpty())
+        if (baseType.subTypes().isEmpty() || indexTargetType == 
IndexTarget.Type.SIMPLE || indexTargetType == IndexTarget.Type.FULL)

Review Comment:
   I'd throw a quick comment above this...
   
   ```
   // We only need to inspect sub-types when it is possible for them to be 
queried individually.
   ```



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

Reply via email to