dioptre commented on PR #40729:
URL: https://github.com/apache/arrow/pull/40729#issuecomment-2015668515

   Ah your [suggestion broke 
it](https://github.com/apache/arrow/pull/40729/commits/cff7709d63f03f497dbdc3e97a6fcbd16a1d2f62)
 so I reverted. I also made it a function per your request.
   
   It was my understanding that the scale is included in the metadata, and 
there's no real metadata in the arrow bytes. This confused me at first as I was 
looking for it. So seems we need the valueOf(scale)?
   
   > console.log(vec.get(0))         // [1000, 0, 0, 0] <- byte array looks 
correct
   > console.log(`${vec.get(0)}`)    // "1000" <- incorrect, should be 1; 
ignores scale
   > console.log(Number(vec.get(0))) // 1000 <- incorrect, should be 1
   > ```
   
   


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