szehon-ho commented on code in PR #5376:
URL: https://github.com/apache/iceberg/pull/5376#discussion_r1024931871


##########
api/src/main/java/org/apache/iceberg/Schema.java:
##########
@@ -233,6 +233,16 @@ public Map<String, Integer> getAliases() {
     return aliasToId;
   }
 
+  /**
+   * Returns a map for this schema between field id and qualified field names. 
Initializes the map,
+   * if it has not been initialized by calls to {@link #findColumnName(int)}.
+   *
+   * @return a map of field id to qualified field names
+   */
+  public Map<Integer, String> idToName() {

Review Comment:
   Yea I had a memory of discussing this with @aokolnychyi but cant remember 
now for sure :)
   
   From looking now, I guess I need the list of ids as well, and so thought 
might as well return the map (its just as expensive to compute list of ids as 
the whole map).  I updated the comment, but let me know if you prefer something 
else.



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


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

Reply via email to