Comments (3)
I can fix this bug, but before fixing it, I hope we can reach a consensus.
The root cause of this bug is caused by the m.Values.([]interface{}) assertion in the github.com/lindb/common/models/metadata.go
file, but I prefer to fix it in the ExecuteAsResult function of the github.com/lindb/internal/client/execute.go
file. The solution is to assert the formatter and determine whether Values is nil, if it is empty, a friendly prompt will be output.
At the same time, I also want to add the recover method at the top of the ExecuteAsResult method to prevent lindcli from crashing.
In addition, can I change the color of the input sql text?
from lindb.
The root cause is getting zero results from the server when no data is found, this bug can be fixed according to your solution. Can recover at the top of cli execute method then return error message.
Or return an empty result not nil if there is no data, it can make api/cli to return empty.
https://github.com/lindb/lindb/blob/main/query/search.go#L163-L216
from lindb.
Currently some common query cases are supported in LinDB cli.
from lindb.
Related Issues (20)
- [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 11
- [enhance]: monthly partitioning of indices
- [bug]: darwin package no cpu stats data
- [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
- [feature]: build index on LinDB common kv store
- [bug]: data not found with not in filter(if tag value not exist) HOT 2
- [enhance]: create database by with statement HOT 3
- [feature]: support opentelemetry exemplar
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.