xuzifu666 commented on code in PR #4287:
URL: https://github.com/apache/calcite/pull/4287#discussion_r2032515593


##########
core/src/main/java/org/apache/calcite/sql/dialect/PhoenixSqlDialect.java:
##########
@@ -40,4 +47,19 @@ public PhoenixSqlDialect(Context context) {
   @Override public boolean supportsCharSet() {
     return false;
   }
+
+  @Override public @Nullable SqlNode getCastSpec(RelDataType type) {
+    switch (type.getSqlTypeName()) {
+    case REAL:
+      return new SqlDataTypeSpec(
+          new SqlAlienSystemTypeNameSpec(
+              "FLOAT",
+              type.getSqlTypeName(),
+              SqlParserPos.ZERO),
+          SqlParserPos.ZERO);
+    default:
+      break;
+    }
+    return super.getCastSpec(type);

Review Comment:
   Had handled with array and map types in cast logic,because Hive/Phonenix had 
not type of multiset,  PTAL @mihaibudiu 



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