Skip to content

GFQL/polars: connected comma-pattern (multi-alias join) crashes with AttributeError instead of running natively or clean NIE #1713

Description

@lmeyerov

Summary

On engine='polars' / 'polars-gpu', a connected comma-pattern that shares a node alias — MATCH (p)-[R1]->(i), (p)-[R2]->(c) WHERE ... (graph-benchmark q5/q6/q7 shape) — crashes with AttributeError: 'DataFrame' object has no attribute 'merge'. The _compile_connected_match_join lowering emits a chain that runs the join via the pandas row pipeline (.merge), which a polars frame does not support.

Impact

Fix options

  1. Minimum: make the polars engine detect the connected-join / non-native row-pipeline op and raise a clean NotImplementedError (honest NIE).
  2. Full: a native polars connected-join lowering (the binding-ops path GFQL/polars: native rows(binding_ops) — traversal queries NIE (blocks polars for edge/multi-hop Cypher) #1709 already does multi-alias joins natively; route the comma-pattern through it).

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions