Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The C++ reader can bind a named condition when it prepares a query. Callers can build the condition before opening a file and reuse it across queries. This PR brings the C++ work from #1178 onto an Apache-hosted branch for CI and simplifies how a table scan receives its TAG filter. The native reader work originally came from #1169.
Query behavior
storage::Expressionfor comparisons, ranges, null tests and logical operators. Each query binds its own copy of the named operands and typed literals. Callers can release the input expression after query preparation.const Expression*arguments fortag_filterandfield_filter. TAG operands bind to device ID segments. FIELD operands bind to typed columns for row evaluation and page pruning. Offset and limit count rows that pass the filters.DeviceTaskIterator. A query prepared from an expression owns its bound filter. The existing indexed TAG overload continues to borrow the caller'sFilter*for the lifetime of the scan.NOT(a = x)continues to match a missing TAG and exclude a null FIELD or tree value.TagFilterBuilderand the factories onAlignedFieldFilter. The C signatures are unchanged. A successful C TAG logical composition takes ownership of its operands. A null operand or aliased binary operands leave ownership with the caller. Allocation failure during composition terminates the process.Verification
libtsfileand all five Cython extensions. All 15 Python ownership tests passed under ASan/LSan.go vetand the Go race suite passed against the C++ library from this revision. C++ Spotless andgit diff --checkpassed.