Fokko commented on issue #538:
URL: https://github.com/apache/iceberg-python/issues/538#issuecomment-2013703991
This indeed works:
```python
>>> from pyiceberg.types import DecimalType
>>> literal("100.00").to(DecimalType(10,2))
DecimalLiteral(Decimal('100.00'))
```
I ma
Fokko closed issue #538: Convert a StringLiteral into a DecimalLiteral
URL: https://github.com/apache/iceberg-python/issues/538
--
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.
syun64 commented on issue #538:
URL: https://github.com/apache/iceberg-python/issues/538#issuecomment-2013684565
I'm making a similar observation as @Dysprosium0626 as well
```
from pyiceberg.expressions.literals import StringLiteral
from pyiceberg.types import DecimalType
Dysprosium0626 commented on issue #538:
URL: https://github.com/apache/iceberg-python/issues/538#issuecomment-2012144995
Hi @Fokko I'd like to have I try but I do not know where to put these code.
It seems that we already have
https://github.com/apache/iceberg-python/blob/bbc7e7c8d095b4afea