xiangfu0 commented on code in PR #10685:
URL: https://github.com/apache/pinot/pull/10685#discussion_r1178542614
##########
pinot-common/src/main/java/org/apache/pinot/common/request/context/RequestContextUtils.java:
##########
@@ -119,7 +119,11 @@ public static FilterContext getFilter(Expression
thriftExpression) {
return new FilterContext(FilterContext.Type.PREDICATE, null,
new EqPredicate(getExpression(thriftExpression),
getStringValue(RequestUtils.getLiteralExpression(true))));
case LITERAL:
- // TODO: Handle literals.
+ // Skip "WHERE true"
Review Comment:
Added a PinotLiteralFilterRule to handle this in optimizer.
##########
pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/queries/ResourceBasedQueriesTest.java:
##########
@@ -375,9 +375,13 @@ private static Object[][]
testResourceQueryTestCaseProviderWithMetadata()
: replaceTableName(testCaseName, queryCase._sql);
int segmentCount = 0;
- for (String tableName : testCaseEntry.getValue()._tables.keySet()) {
- segmentCount +=
- _tableToSegmentMap.getOrDefault(testCaseName + "_" + tableName
+ "_OFFLINE", new HashSet<>()).size();
+ if (queryCase._expectedNumSegments != null) {
Review Comment:
done
--
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]