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.

Row coloring doesn't work on some calculated columns

See original GitHub issue

Row coloring doesn’t work on some calculated columns. By “calculated column”, I’m referring to a column calculated on the fly during a SELECT query.

For example, if I run this query:

SELECT age, count (*)
FROM student
GROUP BY age;

And then, I choose to color the rows whose column count equals 10, coloring doesn’t work. If I apply the coloring on age, it doesn’t work either.

Curiously, if I remove the column age from the query, it works:

SELECT count (*)
FROM student;

I’m not 100% sure, but I believe that coloring fails when you mix physical columns with calculated ones. If all columns are physical or all calculated, it seems to work fine.

I’ve tested this issue also with virtual columns, and the situation looks like the same. I guess that, from the point of view of DBeaver, calculated columns are, after all, virtual columns. Is that right?.

Thank you!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Jan 25, 2020

The problem was caused by mixing tables metadata and custom queries metadata. Now they are stored separately.

Side effect: colors for direct table data reading and for custom query SELECT * FROM table will be different.

0reactions
kseniiaguzeevacommented, Jan 28, 2020

Verified

Read more comments on GitHub >

github_iconTop Results From Across the Web

Color Coding by column instead of the entire row
I am trying to conditional format the text (like in the first 3 of your columns) but I want the column headers to...
Read more >
How to color specific columns and rows in Tableau crosstabs
And therefore, in this short article I am going to share with you one way you can color certain rows and columns in...
Read more >
Solved: Conditional Formatting based on calculated column
I'm trying to change the background colour of a cell which is a returned result of a calculated column based on data from...
Read more >
Excel: Change the row color based on cell value - Ablebits
Learn how to quickly change the color of the entire row based on a single cell's value in Excel 2016, 2013 and 2010....
Read more >
When to use Calculated Columns and Calculated Fields
Our Profit field doesn't provide any useful information when it's placed in COLUMNS, ROWS, or FILTERS areas. It only makes sense as an...
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