preview of what I am supposed to change, replace the \N
with ()
with empty string
d = FOREACH result GENERATE REPLACE(REPLACE(EFF_DT,'\N','');
so essentially if it's a valid date should be left alone, if its \N
it should get rid of \N
and supposed to show ()
but it obviously comes up as (\)
. Just wondering why this isn't working like it supposed to. I tried the bottom one as well no help.
d = FOREACH result GENERATE REPLACE(REPLACE(EFF_DT,'\N',''),'\',''));
Both \
and N
are special characters here. Try this,
d = FOREACH result GENERATE REPLACE(EFF_DT,'\\\\N','');