strongduanmu commented on code in PR #27258:
URL: https://github.com/apache/shardingsphere/pull/27258#discussion_r1266053903


##########
kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/converter/segment/expression/impl/TypeCastExpressionConverter.java:
##########
@@ -43,7 +43,25 @@ public Optional<SqlNode> convert(final TypeCastExpression 
segment) {
         if (!expression.isPresent()) {
             return Optional.empty();
         }
-        SqlTypeNameSpec sqlTypeName = new 
SqlBasicTypeNameSpec(SqlTypeName.valueOf(segment.getDataType().toUpperCase()), 
SqlParserPos.ZERO);
+        String typeName = segment.getDataType().toUpperCase();
+        switch (typeName) {
+            case "INT2":

Review Comment:
   openGauss is a derivative version of PostgreSQL database, these types do not 
exist in sqlserver, oracle, so they are not common logic. 



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

Reply via email to