olivrlee commented on code in PR #3069:
URL: https://github.com/apache/calcite/pull/3069#discussion_r1107934196


##########
core/src/main/java/org/apache/calcite/prepare/CalciteCatalogReader.java:
##########
@@ -108,6 +114,23 @@ protected CalciteCatalogReader(CalciteSchema rootSchema,
             : new LinkedHashSet<>(schemaPaths));
     this.typeFactory = typeFactory;
     this.config = config;
+    this.aliasTypeMap = HashBiMap.create();
+    populateAliasTypeMap(this.aliasTypeMap, rootSchema);
+  }
+
+
+  public static void populateAliasTypeMap(BiMap<TypeEntry, String> 
aliasTypeMap,

Review Comment:
   I'm a bit unsure on whats the types I should be indexing in and out so that 
we have most versatility when retrieving (I'd imagine doing String <-> String 
we lose a lot of info)



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