This is an automated email from the ASF dual-hosted git repository.

zhenchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 98b23fb0c2 [CALCITE-7137] Small nit: method name wrong in 
documentation for hint strategy
98b23fb0c2 is described below

commit 98b23fb0c202e94928ee6c35126a8d32b0c1016f
Author: Zhen Chen <[email protected]>
AuthorDate: Thu Aug 21 23:05:20 2025 +0800

    [CALCITE-7137] Small nit: method name wrong in documentation for hint 
strategy
---
 .../java/org/apache/calcite/rel/hint/package-info.java     | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/rel/hint/package-info.java 
b/core/src/main/java/org/apache/calcite/rel/hint/package-info.java
index 25c28c15c2..2c38fb5535 100644
--- a/core/src/main/java/org/apache/calcite/rel/hint/package-info.java
+++ b/core/src/main/java/org/apache/calcite/rel/hint/package-info.java
@@ -46,16 +46,12 @@
  * <pre>
  *       // Initialize a HintStrategyTable.
  *       HintStrategyTable strategies = HintStrategyTable.builder()
- *         .addHintStrategy("time_zone", HintPredicates.SET_VAR)
- *         .addHintStrategy("index", HintPredicates.TABLE_SCAN)
- *         .addHintStrategy("resource", HintPredicates.PROJECT)
- *         .addHintStrategy("use_hash_join",
- *             HintPredicates.and(HintPredicates.JOIN,
- *                 HintPredicates.explicit((hint, rel) -&gt; {
- *                   ...
- *                 })))
+ *         .hintStrategy("time_zone", HintPredicates.SET_VAR)
+ *         .hintStrategy("index", HintPredicates.TABLE_SCAN)
+ *         .hintStrategy("resource", HintPredicates.PROJECT)
+ *         .hintStrategy("use_hash_join", 
HintPredicates.and(HintPredicates.JOIN))
  *         .hintStrategy("use_merge_join",
- *             HintStrategyTable.strategyBuilder(
+ *             HintStrategy.builder(
  *                 HintPredicates.and(HintPredicates.JOIN, 
joinWithFixedTableName()))
  *                 
.excludedRules(EnumerableRules.ENUMERABLE_JOIN_RULE).build())
  *         .build();

Reply via email to