Skip to content

"Transforms" breaks sequence of transformations  #71

@zolotovvv

Description

@zolotovvv

Hi,

buildTransforms method firstly takes "aggregate" value and pushes to the result and only after it takes "filter" value and pushes to the result.

For example, we have the following query object:

{
  "transform": {
    "filter": [
      {
        "project": "some value"
      }
    ],
    "aggregate": {
      "id": {
        "with": "countdistinct",
        "as": "count"
      }
    }
  }
}

And result is:
$apply=aggregate(id with countdistinct as count)/filter(project eq 'some value')

And it's a wrong expression because first of all, we have to apply filter transformation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions