This is an automated email from the ASF dual-hosted git repository.
libenchao 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 df73ebd3d3 Minor: the parameter names of
SqlTypeMappingRules.Builder#add are misleading
df73ebd3d3 is described below
commit df73ebd3d3f954aeccfda1e6af67752eb323f60f
Author: ForestLH <[email protected]>
AuthorDate: Tue Jul 11 20:10:18 2023 +0800
Minor: the parameter names of SqlTypeMappingRules.Builder#add are misleading
Signed-off-by: ForestLH <[email protected]>
---
.../main/java/org/apache/calcite/sql/type/SqlTypeMappingRules.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/src/main/java/org/apache/calcite/sql/type/SqlTypeMappingRules.java
b/core/src/main/java/org/apache/calcite/sql/type/SqlTypeMappingRules.java
index 93c786bbde..047667b323 100644
--- a/core/src/main/java/org/apache/calcite/sql/type/SqlTypeMappingRules.java
+++ b/core/src/main/java/org/apache/calcite/sql/type/SqlTypeMappingRules.java
@@ -72,9 +72,9 @@ public abstract class SqlTypeMappingRules {
}
/** Add a map entry to the existing {@link Builder} mapping. */
- void add(SqlTypeName fromType, Set<SqlTypeName> toTypes) {
+ void add(SqlTypeName toType, Set<SqlTypeName> fromTypes) {
try {
- map.put(fromType, sets.get(toTypes));
+ map.put(toType, sets.get(fromTypes));
} catch (UncheckedExecutionException | ExecutionException e) {
throw Util.throwAsRuntime("populating SqlTypeAssignmentRules",
Util.causeOrSelf(e));
}