Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #989: Impossible to create array with > 100 items #1001

Merged
merged 1 commit into from
Jun 21, 2023

Commits on Jun 21, 2023

  1. Fix issue apache#989: Impossible to create array with > 100 items

    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!).
    jrgemignani committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4ee7a88 View commit details
    Browse the repository at this point in the history