Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/996#discussion_r145564522 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SchemaUtilites.java --- @@ -77,6 +77,22 @@ public static SchemaPlus findSchema(final SchemaPlus defaultSchema, final String return findSchema(defaultSchema, schemaPathAsList); } + /** + * Utility function to get the commonPrefix schema between two supplied schemas. + * @param defaultSchema default schema + * @param schemaPath current schema path + * @param isCaseSensitive true if caseSensitive comparision is required. + * @return common prefix schemaPath + */ + public static String getPrefixSchemaPath(final String defaultSchema, final String schemaPath, final boolean isCaseSensitive) { --- End diff -- Isn't Drill always case insensitive since it follows SQL naming rules? We've often discussed how to handle case insensitive data sources, but we have no uniform, workable design. Is there a pattern we are following here?
---