sqls
sqls copied to clipboard
Nullable fields cause pointer addresses to be printed
Describe the bug When querying a table with nullable fields in clickhouse (postgres doesn't have this behavior), the result prints the pointer address instead of the value. After some debugging it looks like clickhouse is using pointer types to represent nullability.
To Reproduce Steps to reproduce the behavior:
- Setup a clickhouse instance
- Create a table with a nullable column
- Insert data into table
- Select table (you will now see pointer addresses instead of the values)
Expected behavior Pointers should be resolved, if they are not nil
Versions (please complete the following information):
- OS Version: MacOS
- sqls Version: master (eb695acda8a928f6633555fedb91b22e6290f0f0)