julianhyde commented on code in PR #3945:
URL: https://github.com/apache/calcite/pull/3945#discussion_r1768924163
##########
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystem.java:
##########
@@ -62,6 +64,14 @@ public interface RelDataTypeSystem {
/** Returns the maximum precision of a NUMERIC or DECIMAL type. */
int getMaxNumericPrecision();
+ /** Returns the minimum scale of a NUMERIC or DECIMAL type. */
+ int getMinNumericScale();
Review Comment:
We currently have both `getMaxScale(SqlTypeName)` and
`getMaxNumericScale()`. (The latter delegates to the former.)
So should we instead be creating `getMinScale(SqlTypeName)`? It would allow
a type system to have different min scales for (say) a decimal and a binary
floating point.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]