Github user maropu commented on the pull request:

    https://github.com/apache/spark/pull/7744#issuecomment-125905838
  
    We must change these getter/setter interfaces?
    ISTM that `setDecimal(i: ordinal, value: Decimal)` serializes the value 
with the precision/scale that the input decimal value has, and `getDecimal(i: 
ordinal)` simply read the value as-is.
    
    The decimal format could be as follows;
    (1-bit flag, precision, scale, 4-byte offset) is packed in a 8-byte fixed 
part.
    The flag represents a following format in a variable-length part.
    If 0,  'precision <= 18' and the format is [long].
    If 1, '18 < precision <= 38' and the format is [size in long][byte array of 
BigDecimal].
    
    Any other compact representations?



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