Skip to content

SQLParseException[The types of the columns within VALUES lists must match. Found text_array and object_array at position: 8] #1541

@amotl

Description

@amotl

Problem

Hi. The meltano/file-to-cratedb exercise started failing on CI last night.

sqlalchemy.exc.ProgrammingError: (crate.client.exceptions.ProgrammingError) SQLParseException[The types of the columns within VALUES lists must match. Found `text_array` and `object_array` at position: 8]
2026-04-08T03:59:27.287683Z [info     ] target-cratedb sqlalchemy.exc.ProgrammingError: (crate.client.exceptions.ProgrammingError) SQLParseException[The types of the columns within VALUES lists must match. Found `text_array` and `object_array` at position: 8]
2026-04-08T03:59:27.287811Z [info     ] target-cratedb [SQL: INSERT INTO melty.countries (code, name, native, phone, capital, currency, emoji, continent, languages, "_sdc_extracted_at", "_sdc_received_at", "_sdc_batched_at", "_sdc_deleted_at", "_sdc_sequence", "_sdc_table_version", "_sdc_sync_started_at") VALU ... 12401 characters truncated ... , (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
2026-04-08T03:59:27.287955Z [info     ] target-cratedb [parameters: ('AD', 'Andorra', 'Andorra', '376', 'Andorra la Vella', 'EUR', '🇦🇩', {'code': 'EU', 'name': 'Europe'}, [{'code': 'ca', 'name': 'Catalan'}], '2022-07-17T20:43:19.031894Z', '2026-04-08T03:59:26.511690Z', '2026-04-08T03:59:26.511681Z', None, 1775620766512, None, 1775620765708, 'AE', 'United Arab Emirates', 'دولة الإمارات العربية المتحدة', '971', 'Abu Dhabi', 'AED', '🇦🇪', {'code': 'AS', 'name': 'Asia'}, [{'code': 'ar', 'name': 'Arabic'}], '2022-07-17T20:43:19.032033Z', '2026-04-08T03:59:26.511948Z', '2026-04-08T03:59:26.511681Z', None, 1775620766512, None, 1775620765708, 'AF', 'Afghanistan', 'افغانستان', '93', 'Kabul', 'AFN', '🇦🇫', {'code': 'AS', 'name': 'Asia'}, [{'code': 'ps', 'name': 'Pashto'}, {'code': 'uz', 'name': 'Uzbek'}, {'code': 'tk', 'name': 'Turkmen'}], '2022-07-17T20:43:19.032097Z', '2026-04-08T03:59:26.512142Z', '2026-04-08T03:59:26.511681Z', None, 1775620766512, None, 1775620765708, 'AG', 'Antigua and Barbuda' ... 3900 parameters truncated ... None, 1775620765708, 'ZA', 'South Africa', 'South Africa', '27', 'Pretoria', 'ZAR', '🇿🇦', {'code': 'AF', 'name': 'Africa'}, [{'code': 'af', 'name': 'Afrikaans'}, {'code': 'en', 'name': 'English'}, {'code': 'nr', 'name': 'South Ndebele'}, {'code': 'st', 'name': 'Southern Sot ... (54 characters truncated) ... 'name': 'Tswana'}, {'code': 'ts', 'name': 'Tsonga'}, {'code': 've', 'name': 'Venda'}, {'code': 'xh', 'name': 'Xhosa'}, {'code': 'zu', 'name': 'Zulu'}], '2022-07-17T20:43:19.044031Z', '2026-04-08T03:59:26.545828Z', '2026-04-08T03:59:26.511681Z', None, 1775620766546, None, 1775620765708, 'ZM', 'Zambia', 'Zambia', '260', 'Lusaka', 'ZMW', '🇿🇲', {'code': 'AF', 'name': 'Africa'}, [{'code': 'en', 'name': 'English'}], '2022-07-17T20:43:19.044090Z', '2026-04-08T03:59:26.546080Z', '2026-04-08T03:59:26.511681Z', None, 1775620766546, None, 1775620765708, 'ZW', 'Zimbabwe', 'Zimbabwe', '263', 'Harare', 'USD,ZAR,BWP,GBP,AUD,CNY,INR,JPY', '🇿🇼', {'code': 'AF', 'name': 'Africa'}, [{'code': 'en', 'name': 'English'}, {'code': 'sn', 'name': 'Shona'}, {'code': 'nd', 'name': 'North Ndebele'}], '2022-07-17T20:43:19.044137Z', '2026-04-08T03:59:26.546206Z', '2026-04-08T03:59:26.511681Z', None, 1775620766546, None, 1775620765708)]

Evaluation

On a quick feeling, without conducting any other investigations yet, this might be a regression in CrateDB nightly? I can't think of any other moving parts in this area with Meltano or meltano-target-cratedb, but of course we will also evaluate that when applicable.

On the other hand, it might be a correctness fix/improvement for CrateDB, where meltano-target-cratedb was working incorrect/sloppy before, but CrateDB accepted its input.

Next steps

To shed more light on the case, the usual proceedings are to dissect the failing operation and find a minimal reproducer to report the issue to the tracker at crate/crate, handing it over to the core team to investigate. If the reply is that the update to CrateDB is correct, we need to find an improvement on downstream components, in this case likely the Meltano target adapter meltano-target-cratedb.

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