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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to