livebook-dev / kino

Client-driven interactive widgets for Livebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgre columns of type array can crash SQL smart cells.

az5112 opened this issue · comments

I tried to fetch data from a table which happened to contain a column of type BIGINT[].

This can trigger the following error:

18:40:37.572 [error] GenServer #PID<0.298.0> terminating
** (UnicodeConversionError) invalid code point 11933055
    (elixir 1.15.6) lib/list.ex:1103: List.to_string/1
    (kino 0.11.3) lib/kino/data_table.ex:249: Kino.DataTable.value_to_string/1
    (elixir 1.15.6) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2

Note that 11933055 (from invalid code point 11933055) is an element in the array.

Steps to reproduce are detailed in the attached livebook. (Had to change the extension to .md or else GitHub would not allow me to attach the file.)

arrays-not-supported.livemd.md