Hey All,
How does pig deal with handling null param values.
Should there be an exception on null param value?
Currently it just translates it to String null
e.g
InputStream queryStream = IOUtils.toInputStream("A = LOAD '$VAL'
using PigStorage()", "UTF-8");
Map<String, String> paramMap = Maps.newHashMap();
paramMap.put("PARAM", null);
try {
pigServer.registerScript(queryStream, paramMap);
fail();
} catch (Exception e) {
// should come here
}
Instead currently it the load source as [file:///home/user/null]
Thanks,
Siddhi