8000 Feature/aql subquery splicing with gather by goedderz · Pull Request #10341 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Feature/aql subquery splicing with gather #10341

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

Merged
merged 28 commits into from
Nov 18, 2019

Conversation

goedderz
Copy link
Member
@goedderz goedderz commented Oct 30, 2019

Scope & Purpose

Implement Gather s.t. it works with spliced subqueries, and enable the splice-subqueries optimizer rule with gather blocks.

Detailed changes

  • Implement Gather
  • Fixed MultiDependencySingleRowFetcher
    • for this, change AqlValue functions to work without a transaction
  • Changed DistributeExecutor implementation to work with shadow rows
  • Changed splice-subqueries optimizer rule to allow Gather
  • Fixed bugs in the splice-subqueries optimizer rule, related to cluster blocks

Testing & Verification

This change is already covered by existing tests, like shell_server_aql.

Enterprise part

See https://github.com/arangodb/enterprise/pull/361

@goedderz goedderz added 1 Feature 3 AQL Query language related 3 Optimizer AQL query optimizer is involved labels Oct 30, 2019
@goedderz goedderz added this to the devel milestone Oct 30, 2019
@goedderz goedderz self-assigned this Oct 30, 2019
@goedderz goedderz force-pushed the feature/aql-subquery-splicing-with-gather branch from 556574a to 7ef8fd8 Compare October 30, 2019 16:43
@goedderz goedderz marked this pull request as ready for review November 15, 2019 14:54
goedderz added a commit that referenced this pull request Nov 15, 2019
Copy link
Contributor
@markuspf markuspf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The executor itself is of course simple enough (I think).

It'd be good if we had short descriptions of the AqlValueMaterializer and UnsortingGatherExecutor, and there seems to be a lot of TODOs thorughout which might better be kept in our backlog?

It is (yet again!) rather unfortunate that, to implement the desired code, you had to do major heart surgery in another bit of the code (in the AqlValues); I think in future this should constitute 2 pull requests if at all doable.

I can't quite see whether the tests cover pulling from more than one dependency

Copy link
Contributor
@markuspf markuspf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending the tests this LGTM now.

@goedderz
Copy link
Member Author
goedderz commented Nov 18, 2019

@mchacki mchacki merged commit 7a57a72 into devel Nov 18, 2019
ObiWahn added a commit that referenced this pull request Nov 19, 2019
…ture/dump-db-properties

* 'devel' of https://github.com/arangodb/arangodb:
  Feature/aql subquery splicing with gather (#10341)
  Add braces (#10460)
  fixed issue #10440: Incorrect sorting with sort criteria partially covered by index (#10442)
  Remove as now unused SingleBlockFetcher (#10416)
ObiWahn added a commit that referenced this pull request Nov 19, 2019
…ture/remove-db-properties-route

* 'devel' of https://github.com/arangodb/arangodb:
  Feature/aql subquery splicing with gather (#10341)
  Add braces (#10460)
  fixed issue #10440: Incorrect sorting with sort criteria partially covered by index (#10442)
goedderz added a commit that referenced this pull request Nov 19, 2019
@jsteemann jsteemann deleted the feature/aql-subquery-splicing-with-gather branch March 9, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 Feature 3 AQL Query language related 3 Optimizer AQL query optimizer is involved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0