Comments (2)
lindb/query/operator/series_filtering.go
Line 73 in 2d5b7ec
The series filtering operator in Lindb considers it an error when a tag value does not exist. In such cases, SeriesIDsAfterFiltering is empty, resulting in an empty query result.
This may seem a bit illogical, as in the case of a nonexistent specified tag value, it might be better to query for all tag values. However, another perspective could be that the person writing the query should be aware of the tag values associated with the metric, and entering incorrect tag values is not desirable.
If @stone1100 believe this is a bug, I can fix it.
from lindb.
Maybe the root cause is not cache tag filter results in query context when tag value not found doing tag filter.
https://github.com/lindb/lindb/blob/main/query/operator/tag_values_lookup.go#L73-L79
After that will get error when do series filter.
lindb/query/operator/series_filtering.go
Line 109 in 2d5b7ec
I think cache an empty tag filter result can fix this bug. (https://github.com/lindb/lindb/blob/main/query/operator/tag_values_lookup.go#L73-L79)
The not expression filter logic as below:
- tag value filter and get tag value ids A => node in('local')
- series ids filter based on tag value ids <- go error
- get all series ids by tag key(node)
- do Bitmap NotAnd operator
from lindb.
Related Issues (20)
- [bug]: lost web console when build package via github action
- [feature]: support select *(query all fields)
- [question]: Is this a product exchange group? HOT 3
- [bug]:When the query result is empty, the client will report a null pointer exception. HOT 3
- [feature]: build index on LinDB common kv store
- [enhance]: create database by with statement HOT 3
- [feature]: support opentelemetry exemplar
- [feature]: support prometheus query language HOT 3
- [bug]: read index data panic
- [enhance]: reduce goroutine when write too many data families HOT 2
- [feature]: create table HOT 2
- [feature]: support insert data by sql HOT 2
- [bug]:the 'show metrics' statement returns incorrect results when there are a large number of metrics HOT 1
- [enhance]: new sql parser
- [bug]: Unexplained restart in standalone mode HOT 18
- [question]: Proper backup and restore mechanism HOT 2
- [bug]: Node goes dead HOT 9
- [enhance]: monthly partitioning of indices
- [bug]: miss makezero in slice init
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lindb.