function SPLIT_BY_STRING adds a third optional parameter to limit the size of the array after segmentation
SELECT SPLIT_BY_STRING('one,two,three,', ','); -- ["one", "two", "three", ""]
SELECT SPLIT_BY_STRING('one,two,three,', ',', -1); -- ["one", "two", "three", ""]
SELECT SPLIT_BY_STRING('one,two,three,', ',', 2); -- ["one", "two,three,"]
SELECT SPLIT_BY_STRING('one,two,three,', ',', 3); -- ["one", "two", "three,"]
SELECT SPLIT_BY_STRING('one,two,three,', ',', 4); -- ["one", "two", "three", ""]
SELECT SPLIT_BY_STRING('one,two,three,', ',', 5); -- ["one", "two", "three", ""]