Skip to content

core-clp: Refactor streaming_archive::reader::File::find_message_matching_query.#426

Merged
LinZhihao-723 merged 2 commits into
y-scope:mainfrom
LinZhihao-723:MatchRefactor
Jun 5, 2024
Merged

core-clp: Refactor streaming_archive::reader::File::find_message_matching_query.#426
LinZhihao-723 merged 2 commits into
y-scope:mainfrom
LinZhihao-723:MatchRefactor

Conversation

@LinZhihao-723

Copy link
Copy Markdown
Member

References

Description

This PR refactors the implementation of query matching in the clp File reader. It has two improvements:

  1. Move Query level checks out of the subquery traversal loop.
  2. Rewrite the subquery traversal loop with shorter indent blocks to improve readability.

Validation performed

Compressed hive-24hr dataset and ran wildcard query "INFOapplic12.62?6application*". Ensured the results returned from clg doesn't change after refactoring.

Comment thread components/core/src/clp/streaming_archive/reader/File.cpp Outdated
Comment thread components/core/src/clp/streaming_archive/reader/File.cpp Outdated
Comment thread components/core/src/clp/streaming_archive/reader/File.cpp Outdated
Comment thread components/core/src/clp/streaming_archive/reader/File.cpp Outdated
Comment thread components/core/src/clp/streaming_archive/reader/File.cpp
Comment thread components/core/src/clp/streaming_archive/reader/File.cpp

@kirkrodrigues kirkrodrigues left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the PR title, how about:

core-clp: Refactor streaming_archive::reader::File::find_message_matching_query.

@LinZhihao-723 LinZhihao-723 changed the title core-clp: Refactor query matching method in File reader. core-clp: Refactor streaming_archive::reader::File::find_message_matching_query. Jun 5, 2024
@LinZhihao-723 LinZhihao-723 merged commit 24f5fdf into y-scope:main Jun 5, 2024
junhaoliao pushed a commit to junhaoliao/clp that referenced this pull request May 17, 2026
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