Skip to content

Commit

Permalink
Fix issue #989: Impossible to create array with > 100 items (#1001)
Browse files Browse the repository at this point in the history
Fixed issue 989: Impossible to create an object with an array field
of more than 100 elements.

This issue is due to the function agtype_build_list taking elements
as arguments. As the elements can be anything, expressions too,
they need to be processed by the transform phase and resolved in
the execution phase. As PG has a limitation of 100 function
arguments, this restricts the size of arrays built through
agtype_build_list.

The fix was to break up large lists into segments of 100 items or
less and then use the concatenation operator to join them in the
execution phase.

Added regression tests (thanks Taha!).
  • Loading branch information
jrgemignani authored Jun 21, 2023
1 parent 75a0e43 commit 6e314e8
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 18 deletions.
Loading

0 comments on commit 6e314e8

Please sign in to comment.