-
I try to copy between 2 postgres databases a table with array of uuid, and I get warning code to reproduce: create table test_table (
"id" uuid,
"foo" _uuid
);
INSERT INTO test_table (id, foo) VALUES (gen_random_uuid(), ARRAY[gen_random_uuid(), gen_random_uuid()]); source: LOCAL_PG
target: LOCAL_PG
defaults:
mode: full-refresh
object: 'test.{stream_table}'
streams:
public.test_table: |
Beta Was this translation helpful? Give feedback.
Answered by
flarco
Feb 20, 2024
Replies: 1 comment 4 replies
-
Thanks, Fixed in #179 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah I see. Sling uses JSON for any semi-structure/nested data. At the moment, it doesn't support native arrays (each database has it's own syntax for arrays). What I'm thinking is to have sling auto-convert the native array form source when selecting and writing into target as json (see #179). But writing into a native array on target is a bigger lift. The work-around is, on target side, you could use a
target.options.post_sql
, to convert the json values into native array.