Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Transforms" breaks sequence of transformations #71

Open
zolotovvv opened this issue Nov 20, 2020 · 0 comments
Open

"Transforms" breaks sequence of transformations #71

zolotovvv opened this issue Nov 20, 2020 · 0 comments

Comments

@zolotovvv
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant