Skip to content

to_string(a) requires a to be in the select list #21

Description

@sanikolaev

to_string(<bool>) works only if the <bool> is in the select list too, otherwise it returns an empty value:

mysql> drop table if exists t; create table t(a bool) engine='columnar'; insert into t(id, a) values(1, 1); select to_string(a) from t; select a, to_string(a) from t;  
--------------  
drop table if exists t  
--------------  
  
Query OK, 0 rows affected (0.01 sec)  
  
--------------  
create table t(a bool) engine='columnar'  
--------------  
  
Query OK, 0 rows affected (0.00 sec)  
  
--------------  
insert into t(id, a) values(1, 1)  
--------------  
  
Query OK, 1 row affected (0.00 sec)  
  
--------------  
select to_string(a) from t  
--------------  
  
 --------------   
| to_string(a) |  
 --------------   
|              |  
 --------------   
1 row in set (0.00 sec)  
  
--------------  
select a, to_string(a) from t  
--------------  
  
 ------ --------------   
| a    | to_string(a) |  
 ------ --------------   
|    1 | 1            |  
 ------ --------------   
1 row in set (0.00 sec)  

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions