We can also introduce max_open_partitions here in the future to help avoid OOM
max_open_partitions
Originally posted by @CTTY in #1735