Giter Site home page Giter Site logo

Comments (3)

joyant avatar joyant commented on May 25, 2024

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.

stone1100 avatar stone1100 commented on May 25, 2024

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.

stone1100 avatar stone1100 commented on May 25, 2024

Currently some common query cases are supported in LinDB cli.

from lindb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.