Coder Social home page Coder Social logo

Comments (3)

archiewood avatar archiewood commented on August 16, 2024

what's the intended behaviour here?

throw an error?

or allow the user to have null as a pickable option?

from evidence.

hughess avatar hughess commented on August 16, 2024

I could see both being helpful for different situations:

  1. legitimate nulls - you want to filter a chart to see a null series, where a value was not set for some group of data
    • In this case want nulls to appear (ideally without having to convert to string)
  2. Illegitimate nulls - null sneaks into your dropdown
    • In this case would want an error
    • Or would want the dropdown to automatically exclude nulls

I think including nulls is probably not possible with the current inputs setup - if it was in a string column, you’d have to wrap the input in single quotes in your sql, and then the nulls wouldn’t match

from evidence.

andrejohansson avatar andrejohansson commented on August 16, 2024

I just had troubles with null, and we have a legitimate case where I want null to be one of the selectable options. I also stubled on some issues with the query but AI explained very well to me why I was wrong.

I would want to be able to have null as a value in a combobox (preferable with a human readable label) and that the filter gets created in the correct way:

WHERE (field is null OR field IN (1,2,3,4))

image

from evidence.

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.