-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Make NULL values visible #7439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Make NULL values visible #7439
Conversation
2f94851
to
cd35c27
Compare
cd35c27
to
092bbc8
Compare
2010223
to
092bbc8
Compare
I really like this idea, but I bet we need to make this configurable (e.g. https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-META-COMMAND-PSET-NULL) We could store this in |
Thank you for your comment ! But, I don't know any GUI / Web base tools that "NULL" text is configurable. And so, I guess there is little demand to make NULL text configurable. Also, I think it makes redash complex if we make every special value configurable, like emtpy string, NaN, Infinity, true, false ... Also, for GUI tools, we can make many things configurable, like color, font, style configurable. Do you think we should make these styles configurable ? |
What I am anticipating is that some Redash users prefer the current handling of null values, and we will need a workaround. There are already some settings that are not configurable from the Redash GUI, but can be changed. For example the default number format can be set: UPDATE organizations
SET settings = jsonb_set(settings::jsonb, '{settings,float_format}', '"0.0"', true); |
Thank you. I see ! |
I had in mind a text value: "null_value": "null" This would be used by |
@eradman |
@yoshiokatsuneo, after thinking about this further realized we need to get some feedback from other contributors--people are going to care about this and how it can be enabled/configured. Please don't spend too much time on this, let's see if others will comment! |
I would appreciate the ability to see nulls (distinctly from empty or blank strings). I don't feel strongly about how it's implemented, but I would prefer to be able to distinguish an actual null value from the string |
Yep, that works for me. I saw you had done it, I just wanted to emphasize that I thought it was an important aspect, but I probably didn't communicate it very well. |
@jonahgreenthal I see ! Thanks ! |
What type of PR is this?
Description
Before this PR, on table visualization, NULL value is not visible but shown just as empty string(""). We cannot distinguish between empty string("") and NULL value on the table view.
This PR makes NULL values visible so that we can know the value is not empty string but NULL value.
This is common behavior on many SQL tools.
How is this tested?
I run SQL query generate NULL values like below, and I confirmed that the data is shown as NULL.