-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat(clp-s): Add an initialization method in SchemaReader that passes the column map to FilterClass. #709
feat(clp-s): Add an initialization method in SchemaReader that passes the column map to FilterClass. #709
Conversation
WalkthroughThis update introduces a new method Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant SR as SchemaReader
participant F as Filter
C->>SR: initialize_filter_with_column_map(filter)
SR->>F: init(this, schema_id, column_map)
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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 (
|
0bb5cc6
to
60e0ee3
Compare
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.
Looks good! Just requesting a docstring update to note an import caveat.
@@ -32,6 +32,18 @@ class FilterClass { | |||
std::vector<BaseColumnReader*> const& column_readers | |||
) = 0; | |||
|
|||
/** | |||
* Initializes the filter with a column map |
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.
* Initializes the filter with a column map | |
* Initializes the filter with a column map. | |
* Note: the column map only contains the ordered columns in a schema. |
@@ -180,6 +192,12 @@ class SchemaReader { | |||
*/ | |||
void initialize_filter(FilterClass* filter); | |||
|
|||
/** | |||
* Initializes the filter with a column map |
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.
* Initializes the filter with a column map | |
* Initializes the filter with a column map. | |
* Note: the column map only contains the ordered columns in a schema. |
5d07d8a
to
00ab770
Compare
…ze_filter_with_column_map
…ze_filter_with_column_map
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.
LGTM. For a title how about
feat(clp-s): Add an initialization method in SchemaReader that passes the column map to FilterClass
Description
When implementing a new
FilterClass
, sometimes it's more efficient to do a column ID lookup ifFilterClass
can access the column map. This PR adds a method inSchemaReader
to pass the column map toFilterClass
Checklist
breaking change.
Validation performed
Summary by CodeRabbit