xabriel commented on a change in pull request #89: Make read-path Evaluators 
honor case sensitivity flag. Expose flag in Spark Reader.
URL: https://github.com/apache/incubator-iceberg/pull/89#discussion_r266182073
 
 

 ##########
 File path: api/src/main/java/com/netflix/iceberg/Schema.java
 ##########
 @@ -207,13 +211,31 @@ public Schema select(String... names) {
    * @return a projection schema from this schema, by name
    */
   public Schema select(Collection<String> names) {
+    return select(names, true);
+  }
+
+  /**
+   * Creates a projection schema for a subset of columns, selected by name, 
and with the specified case sensitivity.
+   * <p>
+   * Names that identify nested fields will select part or all of the field's 
top-level column.
+   *
+   * @param names a List of String names for selected columns
+   * @return a projection schema from this schema, by name
+   */
+  public Schema select(Collection<String> names, boolean caseSensitive) {
 
 Review comment:
   Ah, I like the approach of `caseInsensitiveSelect`. A public API with 
specific semantics like that would be useful, and not make follow up calls 
confusing like the refinement pattern. Will go with that!

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to