question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better Visualization and Sorting for NULL values

See original GitHub issue

[SIP] Proposal for Better Visualization and Sorting for NULL values in SQL Lab Results Table

Motivation

While working with a large, non-curated and diverse database consisting of many columns and rows per table I found myself painfully trying to distinguish null values from actual strings/numbers.

Whatsmore, by sorting columns that were supposed to be numerical, the null values sometimes took precedence over the order when I was trying to sort said columns.

Proposed Change

  • If the value of a cell is null, it shows as NULL (italic and light gray) to easily distinguish it from other values in the results table.
  • When sorting a column with NULL values, NULL values always come last regardless of the sorting order.

The change described above is already implemented in a forked local version we have of Apache Superset.

This change does not affect exporting CSV files.

New or Changed Public Interfaces

No change needed for any model, REST endpoint, deployment, or backend.

The only change is in the React Component FilterableTable The file can be found in

<root>/superset/assets/src/components/filterabletable/FilterableTable.jsx

The component generates the results table in SQL Lab queries and other visualizations where SQL tables are present.

New dependencies

No new dependencies

Migration Plan and Compatibility

No migration plan needed

Rejected Alternatives

Alternatives to better solutions are welcome.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
semantiDancommented, Aug 7, 2019

@etr2460 , @mistercrunch Thank you for your comments and for contributing/creating this awesome open-source repository. As you can probably see, I’ve created a PR and referenced this ISSUE.

We have a bunch of other features we plan to add at a later time.

1reaction
issue-label-bot[bot]commented, Aug 4, 2019

Issue-Label Bot is automatically applying the label #enhancement to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Better Visualization and Sorting for NULL values #7983
When sorting a column with NULL values, NULL values always come last regardless of the sorting order. The change described above is already ......
Read more >
Visualizing the Nothing
It's hard to know what to do with null values in our data. Most times, it's easier to drop them and follow with...
Read more >
null value to sort to top
Hi All How can I get a null value to sort to the top? In another visualisation where I have something similar, it...
Read more >
Customizable sorting policy for NULL - Feature Suggestions
Our current sorting mechanism follows the behavior of Postgres where null values are always on top when being applied descending sort.
Read more >
Sorting issue of null value | General Discussion | Wijmo 5
Hi,. We have used the flex grid in our react -redux application and we have an issue with sorting of null values.The grid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found