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

Add a RecordCursor that flattens recursive cursors from previously returned items #2859

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MMcM
Copy link
Contributor

@MMcM MMcM commented Jul 30, 2024

No description provided.

Comment on lines +78 to +79
* @param rootCursorFunction a function that given a continuation or {@code null} returns the children of the root
* @param childCursorFunction a function that given a value and a continuation returns the children of that level
Copy link
Contributor Author

@MMcM MMcM Jul 30, 2024

Choose a reason for hiding this comment

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

This is more like START WITH ... CONNECT BY than a recursive CTE, but it should be possible for planning to recognize common cases of the latter adaptable to the former.


/**
* Get the depth for a recursive result.
* @return the 1-based depth from the root of the given result
Copy link
Contributor Author

@MMcM MMcM Jul 30, 2024

Choose a reason for hiding this comment

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

Like the LEVEL pseudocolumn.


/**
* Get whether a recursive result has any descendants.
* @return {@code true} if the given result is a leaf, {@code false} if it has any descendants
Copy link
Contributor Author

@MMcM MMcM Jul 30, 2024

Choose a reason for hiding this comment

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

Like the CONNECT_BY_ISLEAF pseudocolumn.

@MMcM MMcM force-pushed the recursive-cursor branch 4 times, most recently from 64467ba to e5c435f Compare August 1, 2024 23:05
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 1, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 1, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 1, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 1, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 1, 2024
@MMcM MMcM force-pushed the recursive-cursor branch 2 times, most recently from 0f17037 to 872df02 Compare August 2, 2024 01:28
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 2, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 2, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 2, 2024
@FoundationDB FoundationDB deleted a comment from foundationdb-ci Aug 2, 2024
@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: dca14bf
  • Duration 0:45:38
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: c4c9eb4
  • Duration 0:09:04
  • Result: ❌ FAILED
  • Error: Error while executing command: ./gradlew --no-daemon --console=plain -b ./build.gradle build destructiveTest -PcoreNotStrict -PreleaseBuild=false -PpublishBuild=false -PspotbugsEnableHtmlReport. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: 94ec9c8
  • Duration 0:08:04
  • Result: ❌ FAILED
  • Error: Error while executing command: ./gradlew --no-daemon --console=plain -b ./build.gradle build destructiveTest -PcoreNotStrict -PreleaseBuild=false -PpublishBuild=false -PspotbugsEnableHtmlReport. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: af6a2d0
  • Duration 0:53:10
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

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

Successfully merging this pull request may close these issues.

2 participants