This is an automated email from the ASF dual-hosted git repository.
mbudiu 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 3a2692c25b [MINOR] Update javadoc for SqlTypeName#allowsPrecScale
method
3a2692c25b is described below
commit 3a2692c25b82489134d4040620a09e7fd8155aca
Author: zhujiang <[email protected]>
AuthorDate: Sun Nov 26 16:54:38 2023 +0800
[MINOR] Update javadoc for SqlTypeName#allowsPrecScale method
---
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystem.java | 2 +-
core/src/main/java/org/apache/calcite/sql/type/SqlTypeName.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystem.java
b/core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystem.java
index f67f1cd286..0c89381d8b 100644
--- a/core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystem.java
+++ b/core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystem.java
@@ -191,7 +191,7 @@ public interface RelDataTypeSystem {
* <li>Let d be the number of whole digits in the result</li>
* <li>Then the result type is a decimal with:
* <ul>
- * <li>p = p1 + p2)</li>
+ * <li>p = p1 + p2</li>
* <li>s = s1 + s2</li>
* </ul>
* </li>
diff --git a/core/src/main/java/org/apache/calcite/sql/type/SqlTypeName.java
b/core/src/main/java/org/apache/calcite/sql/type/SqlTypeName.java
index c337580fec..fe43d189da 100644
--- a/core/src/main/java/org/apache/calcite/sql/type/SqlTypeName.java
+++ b/core/src/main/java/org/apache/calcite/sql/type/SqlTypeName.java
@@ -338,7 +338,7 @@ public enum SqlTypeName {
* true</code>, because the VARCHAR type allows a precision parameter, as in
* <code>VARCHAR(10)</code>.</li>
* <li><code>Varchar.allowsPrecScale(true, true)</code> returns <code>
- * true</code>, because the VARCHAR type does not allow a precision and a
+ * false</code>, because the VARCHAR type does not allow a precision and a
* scale parameter, as in <code>VARCHAR(10, 4)</code>.</li>
* <li><code>allowsPrecScale(false, true)</code> returns <code>false</code>
* for every type.</li>