timsaucer closed issue #1190: the python udaf example cannot print the result
URL: https://github.com/apache/datafusion-python/issues/1190
--
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
kosiew commented on issue #1190:
URL:
https://github.com/apache/datafusion-python/issues/1190#issuecomment-3122031655
@l1t1
Noted, I will correct 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 abo
l1t1 commented on issue #1190:
URL:
https://github.com/apache/datafusion-python/issues/1190#issuecomment-3120671550
thanks, I find your key modification are:
> def merge(self, states: list[pa.Array]) -> None:
> # not nice since pyarrow scalars can't be summed yet. This breaks
kosiew commented on issue #1190:
URL:
https://github.com/apache/datafusion-python/issues/1190#issuecomment-3117895992
hi @l1t1
Can you try
```python
import pyarrow as pa
from datafusion import Accumulator, SessionContext, udaf
# Define a user-defined aggregati