olivrlee commented on code in PR #3069:
URL: https://github.com/apache/calcite/pull/3069#discussion_r1107930801
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorUtil.java:
##########
@@ -1039,6 +1046,25 @@ public static ImmutableList<ImmutableBitSet> cube(
return schema.getType(name, false);
}
+ // public static SqlIdentifier getNameFromType(
+ // CalciteSchema rootSchema, RelDataType type) {
+ // // SqlIdentifier target = type.;
+ // Queue<CalciteSchema> queue = new ArrayDeque<>();
+ // queue.add(rootSchema);
+ // while(!queue.isEmpty()){
+ // CalciteSchema currentSchema = queue.remove();
+ // if currentSchema.getType
+ // }
+ // return null;
+ // }
+ public static String getAliasedTypeName(SqlValidator validator, String
typeName){
Review Comment:
this is another important function where given a Calcite type we return the
dialects reverse aliased type
(i.e. calcite TIMESTAMP -> bigquery DATETIME)
--
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]