int8 Arrays displayed as strings in Supabase Dashboard #16942
Replies: 3 comments
-
The table definitions are problematic if the intent is for users to use that sql code. It is not valid sql for all array type columns. I suspect the int8 has something to do with javascript not being able to handle int8 data. Probably some workaround was attempted, but just a guess. |
Beta Was this translation helpful? Give feedback.
-
Tried finding out if there was an issue with the code but couldn't find any from my side maybe according to @GaryAustin1 since int8 is a type of BIGINT it might be converted into strings to avoid potential loss of precision or other compatibility issues |
Beta Was this translation helpful? Give feedback.
-
when using int8 arrays you should convert them to a bytea and use the bytea column type. Supabase supports echanging bytea as hex //x |
Beta Was this translation helpful? Give feedback.
-
Bug report
Describe the bug
int8[]
column data is always displayed as an array of strings in the Supabase Table Editor and SQL EditorAdditionally, table definitions don't specify array types and are just displayed as
array null
:To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Using the Supabase SQL editor:
Expected behavior
For array values to be displayed as their corresponding array type
Screenshots
In table editor:
In sql editor:
Beta Was this translation helpful? Give feedback.
All reactions