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.

Table: sorting breaks for a mix of strings and nulls

See original GitHub issue

Using data from the following query as an example:

select null as x

union all

select '' || s.a % 2 AS x FROM generate_series(1,14) AS s(a)

union all

select null as x

(generates a series of 0,1 values along with two nulls)

If you try to sort it, it places the nulls in random places.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
arikfrcommented, Oct 7, 2019

👍

(no rush though. just stumbled at this issue and wanted to verify)

0reactions
kravets-levkocommented, Jan 20, 2020

@arikfr I guess we can close the issue as it’s already fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript Sorting Nulls Wrong In HTML Table - Stack Overflow
I'm using the below JavaScript code to sort my tables alphabetically and numerical. However, it puts rows with ...
Read more >
Bug: Table sort not working when there are null values in ...
The String type works as expected. This is the same cause as this issue: Potential bug: Table sorting occasionally not working correctly. Retool ......
Read more >
sorting broken if result contains null values #7176 - GitHub
If your result contains null values the sorting breaks with a null pointer exception. Tested with numerical columns.
Read more >
Sort Data in a Visualization - Tableau Help
There are many ways to sort data in Tableau. When viewing a visualization, data can be sorted using single click options from an...
Read more >
Pivot data from long to wide — pivot_wider • tidyr
pivot_wider( data, id_cols = NULL, id_expand = FALSE, names_from = name, ... to join their values together into a single string to use...
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