kadirozde commented on code in PR #2015:
URL: https://github.com/apache/phoenix/pull/2015#discussion_r1833310977
##########
phoenix-core-client/src/main/java/org/apache/phoenix/optimize/QueryOptimizer.java:
##########
@@ -283,13 +283,17 @@ private List<QueryPlan>
getApplicablePlansForSingleFlatQuery(QueryPlan dataPlan,
plans.add(dataPlan);
hintedPlan = getHintedQueryPlan(statement, translatedIndexSelect,
indexes,
targetColumns, parallelIteratorFactory, plans);
- if (hintedPlan != null) {
+ if (hintedPlan != null ) {
PTable index = hintedPlan.getTableRef().getTable();
- if (stopAtBestPlan && hintedPlan.isApplicable() &&
(index.getIndexWhere() == null
- || isPartialIndexUsable(select, dataPlan, index))) {
- return Collections.singletonList(hintedPlan);
+ // Ignore any index hint with a CDC index
Review Comment:
As it is a truncated index, it only includes index rows for the data table
rows that have changed within the max lookback window.
--
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]