Aaaaaaron commented on a change in pull request #2029:
URL: https://github.com/apache/calcite/pull/2029#discussion_r443587411



##########
File path: core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java
##########
@@ -1038,19 +1043,40 @@ public static SqlDataTypeSpec 
convertTypeToSpec(RelDataType type,
     // interval types, multiset types, etc
     assert typeName != null;
 
-    int precision = typeName.allowsPrec() ? type.getPrecision() : -1;
-    // fix up the precision.
-    if (maxPrecision > 0 && precision > maxPrecision) {
-      precision = maxPrecision;
+    SqlTypeNameSpec typeNameSpec;
+    if (isAtomic(type)) {

Review comment:
       Thanks for your advice, I've changed my PR.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to