Skip to content

composite types not pushing down #540

Description

@rcronin

I am trying to test this locally after building pg_lake for docker. When I do the following:

create type accessorial as (
    code text,
    charges numeric
                           );

create table fact_freight_bill_heap as
select 1234334 pro_number, 100.11 net_revenue, array[row('LIFT', 25.00)]::accessorial[] accessorials;

create table fact_freight_bill_iceberg using iceberg as
select pro_number, net_revenue, accessorials
from fact_freight_bill_heap;

I get this error:

[42804] ERROR: column "accessorials" is of type lake_struct.code_charges_a8759c4a[] but expression is of type accessorial[]
Hint: You will need to rewrite or cast the expression.

Originally posted by @rcronin in #535 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions