asfimport opened a new issue, #95:
URL: https://github.com/apache/arrow-js/issues/95

   I discovered this issue using a row's `toJSON()` function. The problem is 
here: 
<https://github.com/apache/arrow/blob/fc1d7d44317b20f899928755b05a774715f27ce8/js/src/vector/row.ts#L195>
   
   When `field.name` is "size", `this["size"]` will return the value of the 
size property on the Row instead of the value of the column. I fixed it locally 
by changing the values function to:
   ```java
   
   public *values() {
       for (const field of this[kParent].type.children) {
           yield (this as RowLike<T>)[this[kKeyToIdx].get(field.name)];
       }
   }
   ```
    
   
   **Reporter**: [Bob 
Matcuk](https://issues.apache.org/jira/browse/ARROW-15305) / @bmatcuk
   
   <sub>**Note**: *This issue was originally created as 
[ARROW-15305](https://issues.apache.org/jira/browse/ARROW-15305). Please see 
the [migration documentation](https://github.com/apache/arrow/issues/14542) for 
further details.*</sub>


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to