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

    https://github.com/apache/spark/pull/12103#discussion_r58247456
  
    --- Diff: 
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ColumnarBatch.java
 ---
    @@ -232,6 +233,56 @@ public MapData getMap(int ordinal) {
         public Object get(int ordinal, DataType dataType) {
           throw new NotImplementedException();
         }
    +
    +    @Override
    +    public void setNullAt(int ordinal) {
    +      columns[ordinal].putNull(rowId);
    +    }
    +
    +    @Override
    +    public void update(int ordinal, Object value) {
    +      throw new NotImplementedException();
    +    }
    +
    +    @Override
    +    public void setBoolean(int ordinal, boolean value) {
    +      columns[ordinal].putBoolean(rowId, value);
    +    }
    +
    +    @Override
    +    public void setByte(int ordinal, byte value) {
    +      columns[ordinal].putByte(rowId, value);
    +    }
    +
    +    @Override
    +    public void setShort(int ordinal, short value) {
    +      columns[ordinal].putShort(rowId, value);
    +    }
    +
    +    @Override
    +    public void setInt(int ordinal, int value) {
    +      columns[ordinal].putInt(rowId, value);
    +    }
    +
    +    @Override
    +    public void setLong(int ordinal, long value) {
    +      columns[ordinal].putLong(rowId, value);
    +    }
    +
    +    @Override
    +    public void setFloat(int ordinal, float value) {
    +      columns[ordinal].putFloat(rowId, value);
    +    }
    +
    +    @Override
    +    public void setDouble(int ordinal, double value) {
    +      columns[ordinal].putDouble(rowId, value);
    +    }
    +
    +    @Override
    +    public void setDecimal(int ordinal, Decimal value, int precision) {
    +      throw new NotImplementedException();
    --- End diff --
    
    why not?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to