提交 520d0657 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 e13d98a3
......@@ -480,20 +480,19 @@ public class Select extends Query {
/**
* Validates the cases where ORDER BY clause do not contains all indexed
* columns, but the related index path still would be valid for such search.
* Sometimes, the absence of a column in the ORDER BY clause does not alter the
* expected final result, and an index sorted scan could still be used.
* Sometimes, the absence of a column in the ORDER BY clause does not alter
* the expected final result, and an index sorted scan could still be used.
* <pre>
* CREATE TABLE test(a, b);
* CREATE UNIQUE INDEX idx_test ON test(a, b);
* SELECT b FROM test WHERE a=22 AND b>10 order by b;
* </pre>
* More restrictive rule where one table query with indexed column
* not present in the ORDER BY clause is filtered with equality conditions
* (at least one) of type COLUMN = CONSTANT in a conjunctive fashion.
* More restrictive rule where one table query with indexed column not
* present in the ORDER BY clause is filtered with equality conditions (at
* least one) of type COLUMN = CONSTANT in a conjunctive fashion.
*
* @param sortColumn Column to be validated
* @return true if the column can be used implicitly, or false
* otherwise.
* @return true if the column can be used implicitly, or false otherwise.
*/
private boolean isSortColumnImplicit(TableFilter tableFilter,
Column sortColumn) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论