Commit be88837
authored
Fix Python UDAF Accumulator Interface example to Properly Handle State and Updates with List[Array] Types (#1192)
* Add test for user-defined aggregation function (UDAF) with DataFusion
- Implement MyAccumulator class following Accumulator interface
- Register UDAF named "my_accumulator" in SessionContext
- Create test DataFrame and run SQL query using UDAF with GROUP BY
- Verify results match expected aggregated values
- Ensure correct integration and functionality of UDAF in Python bindings
* fix: update UDAF implementation to use correct pyarrow compute functions
* fix: correct comment capitalization and remove unused import in UDAF script
* fix: update UDAF accumulator methods to handle state and summation correctly
* Remove test script1 parent 94687cd commit be88837
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments