Hey team, I see that support for storing decimals ...
# general
n
Hey team, I see that support for storing decimals as byte[] and SumPrecision function was added in Pinot 0.6.0. We use Pinot through Presto\Trino. I think byte[] type will be mapped to Presto’s varbinary. I cannot find a builtin Presto function that is equivalent to Pinot’s bytesToBigDecimal? May need to define a Presto UDF. Do you plan to look into adding support for inferring Presto decimal type from Pinot byte[] (if Pinot can indicate somehow that byte[] stores a decimal to Presto) similar to
pinot.infer-date-type-in-schema
and
pinot.infer-timestamp-type-in-schema
settings in Presto Pinot connector. Also, did you consider adding support for a first-class decimal data type in Pinot. Thanks.
@User @User @User Created an issue to track the ask: https://github.com/apache/pinot/issues/8418. Please review and let me know your feedback.
@User @User I will go ahead with doing the change
👍 1
@User @User Sent PR to support single-valued BigDecimal columns in most SQL statements and Pinot transforms/operators: https://github.com/apache/pinot/pull/8468. Can you please take a look? thanks.
👍 1
@User @User As discussed, I broke my PR into multiple PRs. Here is the first PR (please review): https://github.com/apache/pinot/pull/8503