Skip to content

Rewrite transformations logic from TypeScript #17

@Rulexec

Description

@Rulexec

There is a bunch of transforms written in ts — https://github.com/anfivewer/an5wer/tree/a8b65caf14b2d7f0846143e060774266c3b41edc/packages-diffbelt/util/src/transform

We need to port them to Rust in three variants:

  • With direct calls to collection methods

  • With async calls via remote interface (currently http)

  • Compilable to wasm for usage from nodejs, it should receive options of transform (initial/intermediate/target collection, params), return list of required api-calls, data for client processing, then receive responses/calculated data and repeat

  • MapFilter

  • Aggregate: Init

  • Aggregate: Map

  • Aggregate: Get target record

  • Aggregate: Create target info

  • Aggregate: Create initial accumulator

  • Aggregate: Reduce

  • Aggregate: Merge accumulators

  • Aggregate: Apply

  • Aggregate: Finalize

  • Unique count complex transform

  • Percentiles complex transform

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolingRelated to additional utilities that actually is not a core or diffbelt, but useful for UX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions