pig-user  

BinStorage and versioning

Kevin Weil
Wed, 08 Oct 2008 12:00:55 -0700

Hi,

Say that I write out a tuple with three fields using BinStorage.  And then
in a couple months, I add a parameter, so now I write out a tuple with a new
fourth field.  If I'm loading a directory containing the files that have
both of these tuples, and I say

a = LOAD 'my_directory' using BinStorage() as (f1, f2, f3, f4)

what will happen when BinStorage tries to load the first tuple with only
three fields?  Will f4 just be NULL?

Thanks,
Kevin