prql-compiler 0.4.2

PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement.
Documentation
---
source: prql-compiler/src/semantic/resolver.rs
expression: "resolve_derive(r#\"\n            func plus_one x -> x + 1\n            func plus x y -> x + y\n\n            from a\n            derive [b = (sum foo | plus_one | plus 2)]\n            \"#).unwrap()"
---
- id: 23
  Binary:
    left:
      id: 17
      Literal:
        Integer: 2
      ty:
        Literal: Integer
    op: Add
    right:
      id: 20
      Binary:
        left:
          id: 11
          BuiltInFunction:
            name: std.sum
            args:
              - id: 13
                Ident:
                  - _frame
                  - a
                  - foo
                target_id: 6
                ty: Infer
          ty: Infer
        op: Add
        right:
          id: 22
          Literal:
            Integer: 1
          ty:
            Literal: Integer
      ty: Infer
  ty:
    Literal: Column
  alias: b