mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix issue in function "bar"
This commit is contained in:
parent
461d370e8d
commit
33d045b72e
@ -14,7 +14,7 @@ namespace UnicodeBar
|
||||
{
|
||||
double getWidth(double x, double min, double max, double max_width)
|
||||
{
|
||||
if (isNaN(x))
|
||||
if (isNaN(x) || isNaN(min) || isNaN(max))
|
||||
return 0;
|
||||
|
||||
if (x <= min)
|
||||
|
Loading…
Reference in New Issue
Block a user