Divyanshu-s13 opened a new pull request, #344:
URL: https://github.com/apache/arrow-js/pull/344

   ## What's Changed
   
   Fixed a bug in `StructRow.toJSON()` where field names that match built-in 
JavaScript object properties (like `size`, `length`, `toString`, etc.) would 
incorrectly return the built-in property value instead of the actual column 
data.
   
   ### The Problem
   When a struct had a column named `size` and you called `row.toJSON()`, it 
would return the built-in `size` property of the object instead of the value 
from the `size` column.
   
   ### The Solution
   Modified the `toJSON()` method in `src/row/struct.ts` to store the field 
name in a local variable before using it to access the JSON object. This 
prevents property name conflicts with built-in object properties.
   
   Closes #95 
   


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

Reply via email to