Skip to content

Map field references in $expr #30

Open

Description

@DavidBadura

DocumentMetadata::mapFilterToFieldPaths() treats the operands of $expr like filter documents. Field references such as '$name' are not renamed to the stored field name, and operators that take named arguments ($cond, $getField, $let) throw UnknownPropertyPath because their argument keys are taken for property paths.

Mapping $expr properly means walking aggregation expressions and only renaming '$...' string references, which is a different traversal than the one for filter documents. Note that Rango does not support $expr yet either (patchlevel/rango#9).

Found while reviewing #29.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions