Re: question about array indexing

2019-11-04 Thread Merlin Moncure
On Mon, Nov 4, 2019 at 10:05 AM Szymon Lipiński wrote: > > Hey, > I'm wondering if this isn't a bug somewhere in the parser. I had to add > additional parenthesis around the regexp_split_to_array. > > > $ with x as (select 'a b c' a) > select > regexp_split_to_array(a, ' ') > from x; > > reg

question about array indexing

2019-11-04 Thread Szymon Lipiński
Hey, I'm wondering if this isn't a bug somewhere in the parser. I had to add additional parenthesis around the regexp_split_to_array. $ with x as (select 'a b c' a) select regexp_split_to_array(a, ' ') from x; regexp_split_to_array --- {a,b,c} (1 row) $ with x as (sele