We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c0711 commit 61bb8c2Copy full SHA for 61bb8c2
core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java
@@ -523,6 +523,15 @@ public static boolean isInt(RelDataType type) {
523
return typeName == SqlTypeName.INTEGER;
524
}
525
526
+ /** Returns whether a type is TINYINT. */
527
+ public static boolean isTinyint(RelDataType type) {
528
+ SqlTypeName typeName = type.getSqlTypeName();
529
+ if (typeName == null) {
530
+ return false;
531
+ }
532
+ return typeName == SqlTypeName.TINYINT;
533
534
+
535
/** Returns whether a type is numeric with exact precision. */
536
public static boolean isExactNumeric(RelDataType type) {
537
SqlTypeName typeName = type.getSqlTypeName();
0 commit comments