-
Notifications
You must be signed in to change notification settings - Fork 82
feat(clp-s): Add hook to Projection class to help project columns in a specific order #784
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
Conversation
…redProjection use case
WalkthroughThis pull request adds functionality to the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Caller
participant P as Projection
Caller->>P: Call resolve_column(descriptors)
P->>P: Initialize matching_nodes_for_column
loop Process descriptors
alt Descriptor matches and is last token
P->>P: Append child node ID to matching_nodes_for_column
end
end
P->>P: Append matching_nodes_for_column to m_ordered_matching_nodes
P->>Caller: Return result
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
🧬 Code Definitions (1)components/core/src/clp_s/search/Projection.cpp (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me
Description
This PR adds the
get_ordered_matching_nodes
function to theProjection
class to allow users of the class to see how the resolved nodes correspond to their original projection in order. This function has the same semantics asget_matching_nodes_list
from theOrderedProjection
class in the Velox integration. Once this PR is merged the Velox integration PR should be able to replace all usage ofOrderedProjection
with the regularProjection
class.Adding support for tracking order in this way seems to have added no measurable overhead, which is to be expected since the overhead should be O(N) in number of columns being projected, and this overhead is incurred one time when resolving columns.
Checklist
breaking change.
Validation performed
Summary by CodeRabbit