Skip to content

Multiple functions in single udf #1698

@dmpetrov

Description

@dmpetrov

Description

Claude Code like using this pattern: .map(a=fn1, b=fn2) instead of .map(a=fn1).map(b=fn2).

That's seem a good syntax sugar and needs to be supported.

  • map

Updated:

- [ ] gen
- [ ] agg

  • Optimization of a single map - map(a=f1, b=f2) should be squashed to a singe function without intermediate results map(c=f3) where f3 is like f2(f1()) and c is a superset of a and b
  • Optimization of multiple maps - map(a=f1).map(b=f2) ==> map(c=f2(f1()))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    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