Skip to content

v0.5.0: Consolidated planning in DataFusion layer

Latest

Choose a tag to compare

@cldixon cldixon released this 01 Nov 18:28
· 774 commits to main since this release
2e21f27

Ursa 0.5.0

Every relational step now runs in one engine plan. Graph verbs, stats and errors behave the same on every frame. This release has behavior changes: read them before you upgrade.

Highlights

  • One plan, any order. filter, select, with_columns, rename, sort, head, distinct, sample and group_by().agg() run in the engine, in the order you write them, on any frame.
  • Joins anywhere. Any number of joins, in any position, on traversal and algorithm results. New how: right, outer, semi, anti.
  • Graph ops over reshaped edges. Algorithms run over distinct, group_by, join and sample results. One with_columns can mix edge frames.
  • Plans are checked when you build them. A step that cannot run raises on the line that adds it. New frame.schema() and frame.explain().
  • Verbs are frames. ur.degree(e) and the other verbs are NodeFrames with every frame method.
  • Stats over views. density, diameter and avg_path_length read a filtered or traversal view. They take lazy=True. describe(nodes="touched") is new.
  • CSV. New options: delimiter, has_header, quote, escape, null_value, comment. A list of paths reads as one table, weighted algorithms included. Floats such as +5 and Infinity read as double.
  • Clear errors. Messages name the step, say what is wrong and what to do, and show no engine internals. The engine text is kept as __cause__.
  • Faster. Large gains in PageRank (direction="both"), closeness, avg_path_length, diameter, masked degree, attribute joins, Louvain and id interning.

Behaviour changes

  • Float keys in group_by, distinct, n_unique and joins use total order: -0.0 == 0.0, and all NaNs are equal. Filters and sort already did.
  • A wrong kind of argument to a graph function raises TypeError, where the function is called. Before, it raised NotImplementedError or AttributeError.
  • bool(expr) raises TypeError. Use &, | and ~.
  • density, diameter and avg_path_length over a filtered frame now read the filter (#210).
  • A bare edges.nodes() collects to the node set.
  • louvain partitions differ from 0.4.1 for the same seed.
  • Many error messages are reworded; see the changelog for the list. Exception classes are unchanged unless listed.

Fixed

  • describe() over a filtered edge frame reported the whole graph.
  • A Parquet scan could read a column as one repeated value.
  • CSV parse errors report the correct line on any number of cores.
  • Very long step chains no longer crash the process.
  • Security: rustls-webpki and tokio bumped for RUSTSEC-2026-0382 and RUSTSEC-2026-0386.

Full list: CHANGELOG.md.