Skip to content

Conversation

@YuweiXiao
Copy link
Contributor

DuckDB’s VARCHAR type is mapped to PostgreSQL TEXT, but its VARCHAR[] arrays were previously mapped to PostgreSQL VARCHAR[]. This inconsistency causes a type mismatch on the Postgres side during statistics analysis, triggering an assertion in array_typeanalyze.c::compute_array_stats:

Assert(ARR_ELEMTYPE(array) == extra_data->type_id)

This PR standardizes the behavior by converting DuckDB VARCHAR[] to PostgreSQL TEXT[].

A sample dataset is included to reproduce the original failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant