I\'m trying to use a somewhat complex sql to extract data using spark. Here is the line GREATEST(COALESCE(TRY(CAST(element_at(regexp_extract_all(msg.lbb_diag_value, \'
GREATEST(COALESCE(TRY(CAST(element_at(regexp_extract_all(msg.lbb_diag_value, \'