Hello,

I'm trying the following code :

##########################################
inputFile = LOAD 'data' USING TextLoader() AS (line:chararray);

caseTest = FOREACH inputFile {
    GENERATE
        (line MATCHES '.*GET.*' ? (REGEX_EXTRACT(line, '(.*) - .* - (.*)',
1), 'aaaaa') : (REGEX_EXTRACT(line, '(.*) - .* - (.*)', 2),'bbbbb')),
        (line MATCHES......etc),
        (line MATCHES......etc),
        (line MATCHES......etc);
}
##########################################

It's impossible to use the FLATTEN operator, bug ?
It is possible to use matches operator with case when operator ?
How to reduce the number of match for the same pattern ?

Thanks for help

Reply via email to