apache / datafusion-python

Apache DataFusion Python Bindings
https://datafusion.apache.org/python
Apache License 2.0
321 stars 64 forks source link

use ScalarValue::to_pyarrow to convert to python object #731

Closed Michael-J-Ward closed 1 week ago

Michael-J-Ward commented 2 weeks ago

Which issue does this PR close?

Closes #729

Rationale for this change

datafusion already implements converting ScalarValues to python objects.

What changes are included in this PR?

Are there any user-facing changes?

ScalarValue types that we hadn't converted like Float16, BigDecimal128 will now be supported.

It should be strictly additive, I think.