fpstreams 2.4.1__tar.gz → 2.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. {fpstreams-2.4.1 → fpstreams-2.6.0}/CHANGELOG.md +227 -66
  2. {fpstreams-2.4.1 → fpstreams-2.6.0}/PKG-INFO +128 -80
  3. {fpstreams-2.4.1 → fpstreams-2.6.0}/README.md +122 -79
  4. {fpstreams-2.4.1 → fpstreams-2.6.0}/pyproject.toml +28 -5
  5. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/Cargo.lock +13 -13
  6. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/Cargo.toml +3 -3
  7. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/common.rs +36 -2
  8. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/float/endpoints.rs +63 -58
  9. fpstreams-2.6.0/rust/src/float/rolling.rs +155 -0
  10. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/float.rs +3 -0
  11. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/integer/endpoints.rs +128 -58
  12. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/integer.rs +16 -24
  13. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/lib.rs +8 -7
  14. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/numeric_mean.rs +24 -22
  15. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/numpy_group/buffer.rs +32 -74
  16. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/numeric/buffers.rs +49 -3
  17. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/numeric/reductions.rs +70 -2
  18. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/__init__.py +12 -12
  19. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/_native.pyi +6 -0
  20. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/aggregate.py +1 -1
  21. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/async_flow.py +1 -1
  22. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/_collector_base.py +1 -1
  23. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/aggregate_program.py +1 -6
  24. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/aggregation.py +24 -7
  25. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/collector.py +533 -47
  26. fpstreams-2.6.0/src/fpstreams/collecting/sketches.py +122 -0
  27. fpstreams-2.6.0/src/fpstreams/collecting/statistics.py +383 -0
  28. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collectors.py +1 -1
  29. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/column.py +1 -1
  30. fpstreams-2.6.0/src/fpstreams/errors.py +72 -0
  31. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/exceptions.py +1 -1
  32. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/_rows_fusion.py +3 -7
  33. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/_scalar_fusion.py +4 -15
  34. fpstreams-2.4.1/src/fpstreams/execution/arrow.py → fpstreams-2.6.0/src/fpstreams/execution/arrow/__init__.py +107 -371
  35. fpstreams-2.6.0/src/fpstreams/execution/arrow/numeric.py +335 -0
  36. fpstreams-2.6.0/src/fpstreams/execution/arrow/sort.py +129 -0
  37. fpstreams-2.4.1/src/fpstreams/execution/async_scheduler.py → fpstreams-2.6.0/src/fpstreams/execution/asynchronous/__init__.py +85 -17
  38. fpstreams-2.6.0/src/fpstreams/execution/asynchronous/concurrent.py +288 -0
  39. fpstreams-2.4.1/src/fpstreams/execution/async_merge.py → fpstreams-2.6.0/src/fpstreams/execution/asynchronous/merge.py +16 -8
  40. fpstreams-2.4.1/src/fpstreams/execution/async_iterators.py → fpstreams-2.6.0/src/fpstreams/execution/asynchronous/operators.py +119 -14
  41. fpstreams-2.4.1/src/fpstreams/execution/async_timers.py → fpstreams-2.6.0/src/fpstreams/execution/asynchronous/timers.py +9 -9
  42. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/native.py +2 -1
  43. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/numpy_group.py +6 -18
  44. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/numpy_prefix.py +1 -4
  45. fpstreams-2.4.1/src/fpstreams/execution/_pair_aggregate.py → fpstreams-2.6.0/src/fpstreams/execution/pairs/__init__.py +2 -2
  46. fpstreams-2.4.1/src/fpstreams/execution/_pair_dict.py → fpstreams-2.6.0/src/fpstreams/execution/pairs/dictionary.py +43 -32
  47. fpstreams-2.4.1/src/fpstreams/execution/_pair_row_filter.py → fpstreams-2.6.0/src/fpstreams/execution/pairs/row_filter.py +13 -17
  48. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/physical.py +7 -7
  49. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/__init__.py +54 -38
  50. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/arrow_global.py +1 -1
  51. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/arrow_group.py +3 -2
  52. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/collector_group.py +8 -9
  53. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/join.py +8 -7
  54. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/native_group.py +3 -8
  55. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/sync.py +10 -3
  56. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/sync_ops.py +81 -26
  57. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expr.py +1 -1
  58. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/_codegen.py +20 -0
  59. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/_row_codegen.py +6 -1
  60. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/program.py +29 -26
  61. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/row.py +19 -1
  62. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/row_eval.py +17 -5
  63. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/selectors.py +67 -20
  64. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/typed_ir.py +5 -0
  65. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/gather.py +1 -1
  66. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/io_safety.py +12 -3
  67. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/option.py +1 -1
  68. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/physical/compiled.py +1 -3
  69. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/physical/kernel_cache.py +3 -1
  70. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/physical/plan.py +2 -0
  71. fpstreams-2.4.1/src/fpstreams/planning/arrow.py → fpstreams-2.6.0/src/fpstreams/planning/arrow/__init__.py +24 -12
  72. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/async_.py +109 -11
  73. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/async_utils.py +3 -1
  74. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/compiler.py +30 -32
  75. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/explain.py +21 -6
  76. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/gather.py +5 -1
  77. fpstreams-2.6.0/src/fpstreams/planning/lineage.py +308 -0
  78. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/logical.py +20 -2
  79. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/native.py +7 -7
  80. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/numpy.py +1 -1
  81. fpstreams-2.4.1/src/fpstreams/planning/pair_i64_expression.py → fpstreams-2.6.0/src/fpstreams/planning/pairs/i64_expression.py +32 -8
  82. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/plan_cache.py +2 -0
  83. fpstreams-2.4.1/src/fpstreams/planning/relational.py → fpstreams-2.6.0/src/fpstreams/planning/relational/__init__.py +13 -17
  84. fpstreams-2.4.1/src/fpstreams/planning/relational_specs.py → fpstreams-2.6.0/src/fpstreams/planning/relational/specs.py +13 -33
  85. fpstreams-2.4.1/src/fpstreams/planning/semantics.py → fpstreams-2.6.0/src/fpstreams/planning/semantics/__init__.py +8 -1
  86. fpstreams-2.4.1/src/fpstreams/planning/semantic_rules.py → fpstreams-2.6.0/src/fpstreams/planning/semantics/analysis.py +301 -33
  87. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/source.py +3 -0
  88. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/sync.py +13 -0
  89. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/result.py +1 -1
  90. fpstreams-2.6.0/src/fpstreams/runtime/_distinct.py +124 -0
  91. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/iterators.py +58 -1
  92. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/query.py +8 -2
  93. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/resources.py +30 -26
  94. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/tasks.py +49 -17
  95. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/storage/checkpoint.py +34 -14
  96. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/storage/spill_store.py +3 -2
  97. fpstreams-2.4.1/src/fpstreams/streams/_flow_materialize.py → fpstreams-2.6.0/src/fpstreams/streams/_terminals/__init__.py +53 -36
  98. fpstreams-2.4.1/src/fpstreams/streams/_flow_numeric.py → fpstreams-2.6.0/src/fpstreams/streams/_terminals/reductions.py +204 -30
  99. fpstreams-2.4.1/src/fpstreams/streams/_flow_structural_list.py → fpstreams-2.6.0/src/fpstreams/streams/_terminals/structural.py +48 -45
  100. fpstreams-2.4.1/src/fpstreams/streams/_flow_unique_list.py → fpstreams-2.6.0/src/fpstreams/streams/_terminals/unique.py +36 -19
  101. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/async_flow.py +160 -27
  102. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/async_terminals.py +103 -23
  103. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/flow.py +74 -23
  104. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/flow_terminals.py +93 -89
  105. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/pairs.py +46 -19
  106. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/arrow.py +2 -6
  107. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/dataframe.py +10 -6
  108. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/factory.py +5 -7
  109. fpstreams-2.4.1/src/fpstreams/tabular/io.py → fpstreams-2.6.0/src/fpstreams/tabular/io/__init__.py +85 -80
  110. fpstreams-2.6.0/src/fpstreams/tabular/io/database.py +559 -0
  111. fpstreams-2.4.1/src/fpstreams/tabular/_text_sources.py → fpstreams-2.6.0/src/fpstreams/tabular/io/text.py +40 -24
  112. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/join.py +8 -11
  113. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/numpy.py +1 -1
  114. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/polars.py +8 -1
  115. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/rows.py +82 -82
  116. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/spill.py +6 -21
  117. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/spill_io.py +1 -1
  118. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/testing.py +19 -6
  119. fpstreams-2.4.1/src/fpstreams/collecting/statistics.py +0 -194
  120. fpstreams-2.4.1/src/fpstreams/errors.py +0 -33
  121. fpstreams-2.4.1/src/fpstreams/execution/async_map.py +0 -92
  122. fpstreams-2.4.1/src/fpstreams/execution/async_ops.py +0 -97
  123. fpstreams-2.4.1/src/fpstreams/execution/async_prefetch.py +0 -105
  124. fpstreams-2.4.1/src/fpstreams/execution/async_queue.py +0 -94
  125. fpstreams-2.4.1/src/fpstreams/planning/semantic_analyzer.py +0 -168
  126. fpstreams-2.4.1/src/fpstreams/runtime/_distinct.py +0 -35
  127. fpstreams-2.4.1/src/fpstreams/streams/_flow_frequencies.py +0 -203
  128. fpstreams-2.4.1/src/fpstreams/tabular/sql.py +0 -236
  129. fpstreams-2.4.1/src/fpstreams/tabular/sqlite_sink.py +0 -381
  130. {fpstreams-2.4.1 → fpstreams-2.6.0}/LICENSE +0 -0
  131. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/build.rs +0 -0
  132. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/float/affine_pair.rs +0 -0
  133. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/numpy_export.rs +0 -0
  134. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/numpy_group.rs +0 -0
  135. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair/expr.rs +0 -0
  136. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair/prefix.rs +0 -0
  137. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair/row_filter.rs +0 -0
  138. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair/unique.rs +0 -0
  139. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair/value_filter.rs +0 -0
  140. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair/value_map.rs +0 -0
  141. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pair.rs +0 -0
  142. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/pivot.rs +0 -0
  143. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/records.rs +0 -0
  144. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/adapters/namedtuple.rs +0 -0
  145. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/adapters.rs +0 -0
  146. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/global_numeric.rs +0 -0
  147. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/group_numeric.rs +0 -0
  148. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/group_pair_expr.rs +0 -0
  149. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/join_callable/many.rs +0 -0
  150. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/join_callable/unique.rs +0 -0
  151. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/join_callable.rs +0 -0
  152. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/join_exact.rs +0 -0
  153. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational/join_i64.rs +0 -0
  154. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational.rs +0 -0
  155. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational_fixed/composite.rs +0 -0
  156. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational_fixed/global_multi/same_field.rs +0 -0
  157. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational_fixed/global_multi.rs +0 -0
  158. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational_fixed/group_multi.rs +0 -0
  159. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational_fixed/single.rs +0 -0
  160. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/relational_fixed.rs +0 -0
  161. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/scalar_sort.rs +0 -0
  162. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/scalar_unique.rs +0 -0
  163. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/select.rs +0 -0
  164. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/adapters.rs +0 -0
  165. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/group_exact/pairs.rs +0 -0
  166. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/group_exact/rows.rs +0 -0
  167. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/group_exact.rs +0 -0
  168. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/group_fixed.rs +0 -0
  169. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/join_callable/behavior.rs +0 -0
  170. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/join_callable/direct.rs +0 -0
  171. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/join_callable.rs +0 -0
  172. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/join_exact.rs +0 -0
  173. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/numeric/kernels.rs +0 -0
  174. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/numeric.rs +0 -0
  175. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests/numpy_group.rs +0 -0
  176. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/tests.rs +0 -0
  177. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/unnest.rs +0 -0
  178. {fpstreams-2.4.1 → fpstreams-2.6.0}/rust/src/unpivot.rs +0 -0
  179. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/_provenance.py +0 -0
  180. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/__init__.py +0 -0
  181. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/program.py +0 -0
  182. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/collecting/reducer.py +0 -0
  183. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/__init__.py +0 -0
  184. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/relational/arrow_group_rows.py +0 -0
  185. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/sorted_streams.py +0 -0
  186. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/sorting.py +0 -0
  187. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/execution/window_reduce.py +0 -0
  188. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/__init__.py +0 -0
  189. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/row_ir.py +0 -0
  190. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/expressions/scalar.py +0 -0
  191. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/functional.py +0 -0
  192. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/physical/__init__.py +0 -0
  193. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/physical/async_plan.py +0 -0
  194. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/physical/relational.py +0 -0
  195. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/planning/__init__.py +0 -0
  196. /fpstreams-2.4.1/src/fpstreams/planning/arrow_source.py → /fpstreams-2.6.0/src/fpstreams/planning/arrow/source.py +0 -0
  197. /fpstreams-2.4.1/src/fpstreams/planning/_pair_stages.py → /fpstreams-2.6.0/src/fpstreams/planning/pairs/__init__.py +0 -0
  198. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/primitives/__init__.py +0 -0
  199. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/primitives/option.py +0 -0
  200. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/primitives/result.py +0 -0
  201. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/py.typed +0 -0
  202. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/__init__.py +0 -0
  203. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/executor.py +0 -0
  204. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/failpoints.py +0 -0
  205. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/files.py +0 -0
  206. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/limits.py +0 -0
  207. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/metrics.py +0 -0
  208. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/report.py +0 -0
  209. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/runtime/spill.py +0 -0
  210. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/storage/__init__.py +0 -0
  211. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/storage/codec.py +0 -0
  212. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/__init__.py +0 -0
  213. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/streams/_async_identity.py +0 -0
  214. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/__init__.py +0 -0
  215. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/grouped.py +0 -0
  216. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/records.py +0 -0
  217. {fpstreams-2.4.1 → fpstreams-2.6.0}/src/fpstreams/tabular/spill_limits.py +0 -0
@@ -1,9 +1,233 @@
1
1
  # Changelog
2
2
 
3
- This file records user-visible and compatibility-relevant changes in fpstreams 2,
3
+ This file records user-visible and compatibility-relevant changes in fpstreams,
4
4
  including changed defaults.
5
5
 
6
- ## Unreleased
6
+ ## 2.6.0
7
+
8
+ - Collect supported transformed Arrow pipelines into column lists without boxing
9
+ each row. Custom iteration and unsupported operations retain their row path.
10
+ - Narrow optional element types after no-selector `Flow.compact()`,
11
+ `Flow.filter_none()`, and `AsyncFlow.filter_none()` calls. Non-optional inputs
12
+ keep their item type. Runtime filtering semantics and order are unchanged.
13
+ - Show how the exported `retry` decorator composes with bounded async requests.
14
+ - Add bounded `AsyncFlow.top()` and `AsyncFlow.bottom()` terminals with stable tie ordering.
15
+
16
+ - Complete UTF-16/32 newline units across short reads without reading the next record.
17
+ - Count a text stream's encoding BOM once when enforcing JSONL record limits.
18
+ Decoded text is measured by re-encoding; binary input keeps exact byte accounting.
19
+ - Use absolute README links that also work from package indexes.
20
+
21
+ ## 2.5.0
22
+
23
+ Version 2.5.0 includes an intentional static typing incompatibility: `Collectors.averaging()` now
24
+ returns `object` in type annotations rather than incorrectly promising `float`.
25
+ Runtime arithmetic is unchanged. Use `Collectors.averaging_with()` for explicit
26
+ accumulator and result types, or narrow the legacy result before use.
27
+
28
+ Dynamic `reduce()` remains dynamically typed. For an explicit accumulator
29
+ contract, use an annotated `Flow.fold()` result or `AsyncFlow.fold_async()`.
30
+ The migration examples are in the collecting and async flow reference pages;
31
+ 2.5.0 does not claim to solve automatic `reduce()` inference.
32
+
33
+ ### Added
34
+
35
+ - `AsyncFlow.fold_async()` provides an explicit asynchronous state contract.
36
+ Use annotated `Flow.fold()` or `AsyncFlow.fold_async()` results when migrating
37
+ dynamic `reduce()` calls to a declared accumulator type.
38
+ - `Collectors.averaging_with()` accepts typed accumulation, division, and empty
39
+ result callbacks for numeric types and custom arithmetic.
40
+ - `Rows.drop_nulls(missing="raise")` propagates lookup failures. Callable
41
+ selectors can define actual absence by returning `None`; the default
42
+ `missing="legacy"` preserves historical lookup handling.
43
+ - `Collectors.averaging()` now declares its result as `object`, replacing the
44
+ inaccurate `float` annotation. Runtime arithmetic is unchanged; migrate typed
45
+ consumers to `averaging_with()` or narrow the result explicitly.
46
+ - `Flow.chunk()` and `AsyncFlow.chunk()` accept `strict=True` to reject an
47
+ incomplete final batch during consumption. The `batch` aliases also support it.
48
+ - `Collectors.frequencies()` counts hashable inputs in first-encounter order and
49
+ composes with synchronous, asynchronous, and grouped collectors.
50
+ - `Collectors.mode()` finds the most frequent hashable value in sync, async,
51
+ and grouped collection, with first-encountered tie breaking.
52
+ - Extend experimental free-threaded core-concurrency CI to Python 3.15t alongside
53
+ 3.14t. Check that native import keeps the GIL disabled, and keep optional adapter
54
+ dependencies out of these jobs through the shared `test-core` group.
55
+ - Add standard CPython 3.15 to the runtime and consumer typing CI matrices.
56
+ The frozen data-adapter environment now uses pandas 3.0.6 and PyArrow 26.0.0
57
+ with Python 3.15 wheels.
58
+ - Runnable resource-ownership examples cover early termination, callback errors,
59
+ and caller cancellation. CI executes their documented code without optional extras.
60
+ - `Collectors.statistics(selector, ddof=0)` computes count, mean, variance, and
61
+ standard deviation with one selection and conversion per valid item.
62
+ - Optional `fpstreams[sketch]` collectors provide KLL approximate quantiles and
63
+ HLL approximate distinct counts through the existing sync, async, and grouped
64
+ reduction interfaces. Exact collectors keep their existing behavior.
65
+ - `Flow.rolling_statistics(size, selector=..., ddof=0)` and its async equivalent
66
+ emit count, mean, and variance for recent items, including warmup windows.
67
+ They reuse `map_accum`, with independent state for every evaluation.
68
+ - `Rows.explain().to_dict(include_field_dependencies=True)` exports static field dependencies.
69
+ Direct projections, computed columns, renames, and supported relational
70
+ operations retain source identities; unsupported operations report unknown
71
+ dependencies. Value inputs and row selection inputs are reported separately.
72
+
73
+ ### Performance
74
+
75
+ - Use C-backed batching for eligible strict retained-list chunks and exact
76
+ generator, map, and filter cursors on Python 3.12+. Python 3.11 and custom
77
+ cursors retain their iterator path.
78
+ - Reduce intermediate generator calls in legacy Gatherers and selected-field
79
+ `Rows.drop_nulls()` while preserving lookup errors and short-circuiting.
80
+ - Use an optional Rust numeric window state for rolling statistics. Selection
81
+ and numeric conversion remain in Python. Explicit Python execution and
82
+ extensions without this capability retain the reference implementation.
83
+
84
+ ### Fixed
85
+
86
+ - Preserve the original custom-key hash exception in synchronous and asynchronous
87
+ per-key reductions, frequency counts, Pair collection, and in-memory Python
88
+ joins and grouping on CPython 3.14 and 3.15. Keep hash calls, raw key identity, and source cleanup unchanged.
89
+
90
+ - Reuse each compiled scalar stage's validated fingerprint for the physical-plan
91
+ cache instead of encoding the same expression again. Row expressions remain
92
+ outside structural caches.
93
+
94
+ - NumPy filter planning checks numeric classes by identity, preserving Python
95
+ fallback for custom integer types whose metaclasses define hashing or equality.
96
+ - Materializing deep `RowExpr` maps and filters skips the unused structural
97
+ fingerprint and reaches the iterative evaluator when direct compilation is bounded.
98
+ - Row-expression effect analysis visits shared IR nodes once. Evaluation still
99
+ executes each occurrence, including repeated selectors and callbacks.
100
+
101
+ - Close the iterator returned by custom Rows/Flow iteration in `to_columns()`
102
+ after exhaustion or conversion failure, preserving the primary error.
103
+ - Respect custom row iteration in `arrow_batches()` with default or explicit
104
+ schemas. Check iteration at consumption time while retaining eligible native
105
+ paths and bounded batch conversion.
106
+
107
+ - Finish a cancelled child's cleanup before propagating cancellation of its drain
108
+ waiter. Repeated caller cancellation no longer interrupts that cleanup or lets
109
+ timeout operators close the source before its pending pull has stopped.
110
+
111
+ - Preserve each result when a shared row-expression node is evaluated more than
112
+ once. Stateful callbacks and dynamic selectors now agree with direct evaluation
113
+ in the iterative fallback, including nested lazy operands.
114
+
115
+ - Convert Arrow extension columns on pandas 2.0 without the dataframe interchange
116
+ protocol when copying is allowed. Keep conversion lazy and exclude index columns.
117
+ - Preserve zero-column row counts in Polars output, including bounded batches,
118
+ on the declared minimum Polars version.
119
+
120
+ - Keep generated row and scalar functions compatible with Python 3.11 AST types.
121
+
122
+ - Reject NaN async durations before opening a source or starting work. Zero stays
123
+ valid for `interval` and `debounce`. An invalid timer rearm preserves its
124
+ existing timer task.
125
+
126
+ - Normalize integer counts for `merge_map` concurrency and synchronous parallel
127
+ workers/buffers before execution. Noninteger values raise `TypeError`, and later
128
+ mutation of an integer-like configuration object cannot change the stored limit.
129
+
130
+ - Require integer capacities for plan and kernel caches, normalizing integer-like
131
+ values once so later mutation cannot change the configured bound.
132
+
133
+ - Accept inner async iterators without an `aclose` hook in `merge_map` and
134
+ `switch_map`. Optional hooks may return an awaitable or a synchronous value;
135
+ cleanup retains the hook selected when the inner opens.
136
+
137
+ - Close the owned outer source when `switch_map` cannot submit its first pull
138
+ task, retaining the submission error and any source cleanup diagnostics.
139
+ Root ownership also covers unstarted intermediate stages and sync-to-async
140
+ adapters without consuming an item or repeating source close.
141
+
142
+ - Drain existing scope tasks before closing upstream resources when a task factory
143
+ rejects the cleanup task. The original submission error remains observable.
144
+
145
+ - Preserve JSON Lines record boundaries when disabling the byte limit. Managed
146
+ paths now use LF/CRLF framing in both modes; borrowed text handles retain the
147
+ caller's newline handling.
148
+
149
+ - Require an initial BOM for nonempty JSON Lines input using generic UTF-16/32
150
+ codecs, consistently across byte-limit modes. Explicit byte-order codecs
151
+ continue to support data without a BOM.
152
+
153
+ - Handle UTF-8 signatures consistently across bounded and unbounded JSON Lines
154
+ sources. A signature before a later record is no longer silently discarded.
155
+
156
+ - Wait for in-flight asynchronous file operations before completing cancellation
157
+ or closing their handles, including cancellation during file acquisition.
158
+
159
+ - Preserve asynchronous file read errors and caller cancellation when file close
160
+ also fails. Close failures still propagate after exhaustion or early termination.
161
+
162
+ - Preserve serialization errors when text writer and source cleanup also fail.
163
+ Atomic CSV, JSON, and JSON Lines exports keep the previous destination on failure.
164
+
165
+ - Preserve checkpoint callback failures when staging cleanup or lock-file close also
166
+ fails. Retries verify and reuse entries published before a later cleanup error.
167
+
168
+ - Clarify how asynchronous `reduce`, `reduce_right`, and `fold_right` resolve
169
+ reducer results while preserving initial values and singleton items unchanged.
170
+
171
+ - Preserve operation errors and continue closing owned resources when a cleanup
172
+ exception raises while formatting its message.
173
+
174
+ - Preserve element and fallback types for synchronous and asynchronous `first`,
175
+ `last`, `find`, and `nth` results. Calls without a default retain the element type.
176
+
177
+ - Retain annotated container Collector results for `Any` input elements and
178
+ infer awaited callable results in async collection. Optional-collector
179
+ forwarding and named results keep their existing contracts.
180
+ - Preserve inferred Collector element/result types for direct container factories
181
+ while retaining explicit `Collectors[int]` construction. Per-key collection
182
+ keeps the collector state type; input variance reflects consumption.
183
+ - Reject non-real numeric scalars such as NumPy `complex64` before converting
184
+ statistical inputs or quantile ranks to floats. Decimal, Fraction, and real
185
+ NumPy scalar inputs keep their existing support.
186
+ - Concurrent async mapping can emit completed results while the source is still
187
+ waiting to produce another item. With concurrency above one, a reader task
188
+ also counts against the query's task limit.
189
+ - `map_async()` normalizes `buffer` through the integer-index protocol when the
190
+ pipeline is built, rejecting noninteger bounds before opening the source.
191
+ - Python and Rust variance calculations retain small differences in data with a
192
+ large common offset. Existing nonfinite-input policies remain unchanged.
193
+ - `Flow.to_async()` preserves its item type, and `Flow.pairs()` preserves tuple
194
+ key and value types. Dynamic pair inputs keep their existing runtime support.
195
+ - Native integer and floating-point range endpoints periodically check Python
196
+ signals during long scans.
197
+ - Reuse native range bounds for periodic signal checks, avoiding a separate
198
+ per-item countdown while preserving the 4096-input check interval.
199
+
200
+ ### Changed
201
+
202
+ - Retained primitive Arrow sources with a complete compatible columnar prefix
203
+ collect directly into `to_list()`, preserving conversion and cleanup hooks.
204
+ - Optional field-dependency export reuses each computed-column analysis within
205
+ its step while preserving opaque-expression short circuiting.
206
+
207
+ - Consolidate internal async execution, pair execution, semantic analysis,
208
+ relational planning, terminal helpers, Arrow planning/execution, pair planning,
209
+ and I/O into domain packages. Public
210
+ imports remain unchanged; private implementation paths have moved.
211
+ - Release excess native numeric vector capacity before constructing list, tuple,
212
+ or set results, reducing overlapping temporary storage.
213
+ - Read row-stage metadata without a shared registry lock. Registration and
214
+ reclamation remain synchronized, with weak owner and executable-code checks.
215
+ - Reuse expression analysis within each field-dependency export. Spill partition
216
+ writes consume their existing byte buffers without an intermediate copy.
217
+ - Guarded Arrow projections can retain builtin scalar and list columns after
218
+ full buffer validation. Unsupported nested types retain row conversion.
219
+ - Plan reasons distinguish representation selection from terminal execution.
220
+ - Separate Arrow numeric reductions and retained sorting from batch dispatch,
221
+ preserving the existing execution entry points and live callback bindings.
222
+ - Document the existing v2 `compact()` difference between Flow and AsyncFlow;
223
+ use `filter_none()` to retain falsey values other than `None` in both domains.
224
+ - Correct CSV scan documentation: query projection follows conversion of all
225
+ caller-visible columns. Explicit Arrow conversion options can restrict the
226
+ reader's columns.
227
+ - Release qualification reuses CI before building distributions. New Python
228
+ 3.11 adapter jobs exercise `lowest-direct` and `highest` dependency resolutions;
229
+ Windows and macOS smoke selections include async cancellation and executor
230
+ ownership paths. Hosted qualification results remain to be established.
7
231
 
8
232
  ## 2.4.1 - 2026-10-18
9
233
 
@@ -258,18 +482,6 @@ including changed defaults.
258
482
  cleanup diagnostics to an existing query error. Cleanup attempts every owned
259
483
  resource. This also changes Arrow `first()`, which previously ignored close errors.
260
484
 
261
- - Engine benchmarks calibrate warmed timing blocks for short tasks and first-row
262
- latency, retaining elapsed time and call counts in their reports. Rebuild
263
- single-call baselines before comparing. Timing and resource regression limits
264
- are unchanged; scheduled CI now uploads the three raw reference reports.
265
-
266
- - Benchmark report schema 6 records Python and glibc allocator environment
267
- settings. Baseline creation and comparison reject missing or mismatched
268
- settings; regenerate older reports. The runners do not change allocator defaults.
269
-
270
- - NumPy frequency benchmarks check key types, integer counts, first-key order,
271
- and floating-point bit patterns. Separate NaN entries, their signs, and their
272
- payloads remain distinct when comparing independently computed outputs.
273
485
  - Generated Python `with_columns` loops call the live enrichment function.
274
486
  Changes to captured accessors, expression evaluators, or the selector list
275
487
  remain visible after plan caching and while reading the source. The transform
@@ -296,14 +508,6 @@ including changed defaults.
296
508
  - `frequencies(key=...)` uses the Python pipeline for sequential `auto` plans,
297
509
  so key callbacks can affect subsequent input reads. Native materialization
298
510
  could hide those changes. Reports identify this route as `python_frequency`.
299
- - Benchmark speedup requirements for composite count/sum groups and NamedTuple
300
- callable joins now apply from 1,000 rows. Smaller inputs still emit timing and
301
- allocation data for cross-run checks. The original ratios and CI workloads
302
- are unchanged; small runs no longer inherit speedup requirements validated
303
- for larger inputs.
304
- - The engine benchmark CLI lists scenarios without running their tasks, timing,
305
- allocation tracking, or execution observation. Listing and measurement share
306
- filtering and fixture cleanup, including when a later scenario builder fails.
307
511
  - Single-collector grouping preserves the general collector program's state
308
512
  release order, including when output is closed early. Unused input keys are
309
513
  released before reading the current finisher, so changes made by their release
@@ -342,34 +546,8 @@ including changed defaults.
342
546
  their length hints. Grouping retains custom key and serialization calls.
343
547
  - Execution reports distinguish successful top-level Rust and Arrow record
344
548
  joins from Python joins. Native pair aggregation also records its direct route.
345
- - Benchmark comparisons reject missing provenance and mismatched workloads.
346
- Both suites record dependencies, Git state, code and workload fingerprints,
347
- and an untimed observation of the task. Median baselines retain each run's
348
- provenance. Older reports need to be regenerated for report schema 6.
349
- - Reports include CPU affinity, NumPy CPU dispatch, and an allowlist of runtime
350
- settings. Comparisons reject mismatched configurations; both runners also
351
- reject configuration changes during measurement.
352
- - Join benchmarks honor the requested engine. Twelve Python controls separate
353
- dict and Mapping records, field and callable keys, and inner, left, and repeated
354
- matches. References preserve callable-key columns and snapshots taken before
355
- key selection, including unmatched left rows.
356
- - NumPy frequency benchmarks cover integer and float arrays, with and without
357
- a callable key, at low and high cardinality. All references preserve first-key
358
- order; Python array-to-list conversion is included in its timed task.
359
- - Competitive samples warm each task for at least 1ms after GC and record the
360
- number of warmup calls. One warmup call left inconsistent timings for short
361
- NumPy tasks in local measurements.
362
- - Competitive benchmarks now record peak Python allocation in a separate,
363
- untimed call for every implementation, using the engine suite's shared helper.
364
- Schema 6 rejects missing or invalid resource measurements, and baseline
365
- creation rejects inconsistent resource sets instead of substituting zero.
366
- Earlier competitive reports contain no allocation evidence.
367
- - Regression checks accept zero allocated bytes when both runs report zero.
368
549
  - `frequencies()` on retained lists and tuples falls back to Python when the
369
550
  optional Rust extension is unavailable, including in the browser wheel.
370
- - Frequency benchmarks use bulk conversion for NumPy dictionaries and pandas'
371
- `to_dict()`, avoiding per-key normalization overhead in the reference tasks.
372
-
373
551
  ### Changed
374
552
 
375
553
  - Automatic NumPy `frequencies()` without a key can count a selected native
@@ -410,10 +588,7 @@ including changed defaults.
410
588
  in addition to Python/native integer sums.
411
589
 
412
590
  - Single-collector groups write step results directly to their stored entries
413
- and avoid reading stored state for completed groups. Group benchmarks now
414
- include `agg.first()` with repeated and distinct keys.
415
- - Group benchmarks now cover custom completion predicates with repeated and
416
- distinct keys, alongside collectors that cannot finish early.
591
+ and avoid reading stored state for completed groups.
417
592
  - Generated scalar expressions, row expressions, and fused loops share a smaller
418
593
  AST location pass. It preserves traversal order and the existing synthetic
419
594
  source positions used in tracebacks.
@@ -422,20 +597,12 @@ including changed defaults.
422
597
  - Scalar fingerprint encoding reuses fixed instruction headers instead of
423
598
  rebuilding their bytes for every query. Expression reads and type checks are
424
599
  unchanged; the table retains no expressions or source data.
425
- - Planning benchmarks separate compilation from execution for integer and float
426
- expressions and a callable control, using the same pipeline for each pair.
427
600
  - Python grouped output uses one fewer forwarding generator. The collector
428
601
  iterator still starts lazily and retains its existing cleanup path.
429
602
  - Collector lifecycle properties read their original slots directly, removing
430
603
  an extra Python wrapper. Frozen assignment, explicit replacement, and deletion
431
604
  errors are preserved. The API manifest now classifies those existing fields
432
605
  as properties; their names and constructor signatures are unchanged.
433
- - Add Python dict-group benchmarks for field and callable selectors with repeated
434
- and distinct keys. Execution observations record the case's requested engine.
435
- - Include nominal Mapping and mappingproxy field-group cases with repeated and
436
- distinct keys when measuring Python selector changes.
437
- - Extend the two-key count/sum benchmarks to repeated keys. Keep the original
438
- direct-versus-callable timing threshold and report any regression against it.
439
606
  - Move the narrow integer-key record-join ABI adapter into the existing join
440
607
  executor module. Kernel order, shape guards, and fallback behavior are unchanged.
441
608
 
@@ -448,9 +615,6 @@ including changed defaults.
448
615
  `Rows.skip()` and `Rows.drop()` in the API index.
449
616
  - Explain the difference between a compiled outer plan and a recorded direct
450
617
  terminal route, including the limits of reports for compound queries.
451
- - Revise the website's introductory and performance text and document the next
452
- benchmark and refactoring steps in the roadmap.
453
-
454
618
  ## 2.1.0 - 2026-09-01
455
619
 
456
620
  ### Added
@@ -480,9 +644,6 @@ including changed defaults.
480
644
  kernels where they preserve Python ordering, identity, errors, and cleanup.
481
645
  - `rows.from_csv()` and `rows.from_jsonl()` now accept caller-owned open handles
482
646
  and replayable zero-argument opener functions in addition to paths.
483
- - The benchmark runner now compares fpstreams with Python, NumPy, and pandas and
484
- reports the percentage difference for each comparable case.
485
-
486
647
  ### Fixed
487
648
 
488
649
  - Fast paths now revalidate cached row expressions, collector programs, NumPy