vlsi commented on a change in pull request #1792: [CALCITE-3775] Implicit 
lookup methods in SimpleCalciteSchema ignore case sensitivity parameter
URL: https://github.com/apache/calcite/pull/1792#discussion_r378167122
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/jdbc/SimpleCalciteSchema.java
 ##########
 @@ -67,31 +68,64 @@ public CalciteSchema add(String name, Schema schema) {
     return calciteSchema;
   }
 
+  private String caseInsensitiveLookup(Set<String> candidates, String name) {
+    for (String candidate: candidates) {
 
 Review comment:
   I suggest it should try:
   1) exact lookup
   2) name.toUpperCase() lookup
   3) name.toLowerCase() lookup
   
   otherwise => iterate over the set.
   
   @DonnyZone , WDYT?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to