mattcasters commented on issue #5947:
URL: https://github.com/apache/hop/issues/5947#issuecomment-3656353195

   I had added:
   ```
             case FIXED_LEN_BYTE_ARRAY:
               // Possibly a Decimal type, a deprecated data type.
               //
               if (primitiveType.getOriginalType() == OriginalType.DECIMAL) {
                 hopType = IValueMeta.TYPE_BIGNUMBER;
                 DecimalMetadata decimalMeta = 
primitiveType.getDecimalMetadata();
                 hopLength = decimalMeta.getScale();
                 hopPrecision = decimalMeta.getPrecision();
               }
               break;
   
   ```
   
   And then, in `ParquetValueConverter.addBinary()` : 
   
   ```
         case IValueMeta.TYPE_BIGNUMBER:
           try {
             object = new BigDecimal(new BigInteger(value.getBytes()), 
valueMeta.getPrecision());
           } catch (NumberFormatException e) {
             object = binaryToDecimal(value, valueMeta.getLength(), 
valueMeta.getPrecision());
           }
           break;
   
   ```


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