feat: regex pushdown for partial search, case-insensitive matching, and expanded integration tests#776
Merged
oleksii-donets merged 9 commits intodevelopmentfrom Mar 23, 2026
Conversation
…ueries (#768) Replace strings.containsStr/hasPrefix/hasSuffix with regexp.compile + =~/!~ operators for CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, and LIKE filters. Regex is compiled into a separate variable before from() so InfluxDB can push the filter down to the storage engine. Add container tests for all partial search operators against both InfluxDB 2 and InfluxDB 3. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add (?i) flag to Flux regex patterns and use ILIKE instead of LIKE in SQL queries for CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH, and LIKE operators. Add case-insensitive container tests for both engines. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…nflux2 (#768) Add new integration tests organized into @nested classes covering filters ($eq, $ne, $or), pagination (limit/offset), and edge cases (empty results, no-match count, expression aliases). Fix InfluxEngine to return a default row with zeros for ungrouped aggregation queries that produce empty results, aligning with SQL-standard behavior and InfluxDB 3. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
…r across sub-queries (#768) The aggregation query builder was dropping the preamble (regex variable declarations like _re0 = regexp.compile(...)) when combining sub-queries, causing invalid Flux queries when using partial string filters (starts_with, contains, etc.) with aggregations. Also made the regex counter shared across all sub-queries to avoid variable name collisions. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
KirylKurnosenka
approved these changes
Mar 23, 2026
Contributor
Dependency ReviewThe following issues were found:
License Issuessettings.gradle
OpenSSF Scorecard
Scanned Files
|
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.
Applicable issues
Description of changes
regexp.compilefor partial string search pushdown in Flux queries, enabling case-insensitive matching for$contains,$not_contains,$starts_with,$ends_with, and$likefilters across both InfluxDB 2 and InfluxDB 3 enginesAbstractInfluxContainerTestfrom 21 to 32 tests, organized into@Nestedinner classes (Aggregation, GroupBy, Filter, PartialStringSearch, CaseInsensitiveSearch, Pagination, EdgeCase)InfluxEngineto return a default row with zeros for ungrouped aggregation queries with no matching rows, aligning with SQL-standard behavior and InfluxDB 3Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.