Summary:
Commit 12e23adb6ac517cde3bacfcbe64a8292470701cf introduces a bad
assertion
Assert(ARR_NDIM(arrayval) <= 2);
Not sure where that number came from or why the author though that was
the right thing to do. This causes crashes in case arrays of dimension
greater than 2 are passed to a scalar array operation such as =ANY. Fix
by removing the bad assertion.
Jira: DB-18947
Test Plan:
On Almalinux 8:
./yb_build.sh fastdebug --gcc13 daemons initdb --skip-pg-parquet \
--java-test TestPgRegressHashInQueries
Backport-through: 2.20
Reviewers: amartsinchyk
Reviewed By: amartsinchyk
Subscribers: yql
Differential Revision: https://phorge.dev.yugabyte.com/D47907