ILuffZhe commented on code in PR #4445:
URL: https://github.com/apache/calcite/pull/4445#discussion_r2255767047
##########
core/src/main/java/org/apache/calcite/sql/dialect/MysqlSqlDialect.java:
##########
@@ -196,6 +196,14 @@ public MysqlSqlDialect(Context context) {
type.getSqlTypeName(),
SqlParserPos.ZERO),
SqlParserPos.ZERO);
+ case UINTEGER:
Review Comment:
For unsigned types, based on Mysql's
[cast](https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html#function_cast),
Mysql always produces an unsigned
[BIGINT](https://dev.mysql.com/doc/refman/8.0/en/integer-types.html) value.
The semantics is different in Calcite if we wanna cast to
UTINYINT/USMALLINT/UINTEGER, how about throwing exception for those types
during casting like @NobiGo said.
--
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]