I am basically trying to split the following string in Denodo and trying to create new columns in the database for each value.
my_string = ABLMNC_154342_O_UW_UA-UCOU_SMC
The problem i am facing is when i split the string, Denodo creates an array. But after that there is no way to access the a specific element using indexes. For example,
split('_',my_string) gives an
op_array[] = [ABLMNC,154342,O,UW,UA-UCOU,SMC]
but I cannot access op_array elements as op_array[0]. I have raised the issue in Denodo but no help.
So, as a way around i have started using regex. For now I am able to get the first string and the numbers.
my_string = ABLMNC_154342_O_UW_UA-UCOU_SMC
regex(my_string,'_[0-9]*_[A-Z]+_[A-Z]+_[A-Z]+-[A-Z]+_[A-Z]+','') = ABLMNC
regexp(my_string,'[A-Z_-]+',' ') = 154342
But I am not able to find other parts of the string. I would be really grateful if someone could help in any of these cases.