You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "amanchaudhary-95 (via GitHub)" <gi...@apache.org> on 2025/12/06 13:02:00 UTC

[I] [Bug] SHOW TIMESERIES WHERE TAGS(...) CONTAINS is Case-Sensitive While Timeseries CONTAINS is Case-Insensitive [iotdb]

amanchaudhary-95 opened a new issue, #16876:
URL: https://github.com/apache/iotdb/issues/16876

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
   
   
   ### Version
   
   apache iotdb = 2.0.5
   
   ### Describe the bug and provide the minimal reproduce step
   
   I'm encountering inconsistent behavior in SQL queries involving `CONTAINS` filters on timeseries metadata. When searching timeseries by `TAGS`, the `CONTAINS` operator behaves case-sensitively.
   
   ```sql
   SHOW TIMESERIES WHERE TAGS(description) CONTAINS "Flow";
   ```
   This returns results correctly because one of my timeseries has a tag `description="Flow"`.
   
   But if I change the search to:
   ```sql
   SHOW TIMESERIES WHERE TAGS(description) CONTAINS "flow";
   ```
   It returns no results, even though `"Flow"` exists.
   So tag-based `CONTAINS` filtering is case-sensitive.
   
   ### What did you expect to see?
   
   `CONTAINS` should behave consistently across metadata fields, ideally being case-insensitive.
   For **timeseries names**, the same query type is already **case-insensitive**:
   ```sql
   SHOW TIMESERIES WHERE Timeseries CONTAINS "Flow";
   ```
   This matches `"Flow"`, `"flow"`, `"FLOW"`, etc.
   
   ### What did you see instead?
   
   #### Why This Matters:
   
   * TAG searches are commonly used for metadata filtering and discovery.
   * Case-sensitive matching makes searching inconsistent with other IoTDB metadata filters.
   * It forces users to know exact casing of tags, reducing usability.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] SHOW TIMESERIES WHERE TAGS(...) CONTAINS is Case-Sensitive While Timeseries CONTAINS is Case-Insensitive [iotdb]

Posted by "CritasWang (via GitHub)" <gi...@apache.org>.
CritasWang commented on issue #16876:
URL: https://github.com/apache/iotdb/issues/16876#issuecomment-3691252616

   In the current design, it is case sensitive


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org