Skip to content

Commit

Permalink
unsupported array type
Browse files Browse the repository at this point in the history
  • Loading branch information
pgguru committed Oct 28, 2024
1 parent 624b001 commit 187f055
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/parquet_copy_hook/copy_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,16 @@ pub(crate) fn create_filtered_tupledesc_for_relation<'a>(
let att_typmod = attribute.type_mod();
let att_ndims = attribute.attndims;

if att_ndims > 0
&& !is_supported_array_element_type(array_element_typoid(type_att_typoid))
{
panic!(
"column \"{}\" of relation \"{}\" is of unsupported type",
attribute_name,
relation.name()
)
}

if attribute.name() == attribute_name {
unsafe {
TupleDescInitEntry(
Expand Down

0 comments on commit 187f055

Please sign in to comment.