Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7291#discussion_r34700507
  
    --- Diff: 
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeRow.java
 ---
    @@ -239,16 +239,11 @@ public void setFloat(int ordinal, float value) {
         PlatformDependent.UNSAFE.putFloat(baseObject, getFieldOffset(ordinal), 
value);
       }
     
    -  @Override
    -  public int size() {
    -    return numFields;
    -  }
    -
       /**
        * Returns the object for column `i`, which should not be primitive type.
        */
       @Override
    -  public Object get(int i) {
    +  public Object apply(int i) {
    --- End diff --
    
    For `Row`, we cannot remove `apply` and `size`, they are public API. For 
InternalRow, we can  ban them (raise exception).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to