terbed opened a new issue, #73:
URL: https://github.com/apache/datafusion-iceberg/issues/73
Hi there,
Decimal128 literals are currently unsupported by
`scalar_value_to_datum`, so decimal comparisons are omitted from
the predicate passed to Iceberg.
For a `price DECIMAL(18,2)` column, for example:
```sql
SELECT id FROM prices
WHERE price > CAST('12.34' AS DECIMAL(18,2));
```
DataFusion evaluates the filter, but Iceberg cannot use that
decimal predicate for pruning.
Support exact conversion of representable Decimal128 literals,
preserving their value, precision, and scale. Leave unsupported
literals to DataFusion.
Cover comparisons and IN predicates, negative values, NULLs,
precision boundaries, and conservative handling of casts.
This should merge after #59: adding decimal conversion exposes
the existing cast-stripping problem for comparisons that require
type coercion.
I have a draft implementation and would be happy to contribute it
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]