David, The SPLIT function working as expected, SPLIT function expects string as parameter where as you given a list object as input , so a toString call on the list object will end up with those extra square braces. We can add input parameter validations to STELLAR functions where ever missing ..
Thanks Mohan DV On Mon, Jul 8, 2019 at 8:08 PM David Auclair <[email protected]> wrote: > Hi, > > > > First of all, versions: > > HDP 2.6.5 > > HCP 1.9.1 > > > > I’ve discovered a possible Stellar bug… > > > > Trying to extract RFI’s, I ran into this possible bug. The actual code is > more complex, but this is a simplified example which replicates the issue. > > > > foobar := ["/blah?http://foo.bar.com/about/"] > > => [/blah?http://foo.bar.com/about/] > > SPLIT(foobar,'?') > > => [[/blah, http://foo.bar.com/about/]] > > GET_LAST(SPLIT(foobar,'?')) > > => http://foo.bar.com/about/] > > IS_URL(GET_LAST(SPLIT(foobar,'?'))) > > false > > > > Note the trailing ‘]’ as the output of the GET_LAST… This is causing the > IS_URL to fail to match. > > > > Unless I’m doing something wrong, I believe this is a bug. > > > > Regards, > > David Auclair > > >
