Hi,

If a table has following data:
----------------------------------------------
RowKey | cf.a    | cf.b         | cf.c
----------------------------------------------
RowKey1 | abc   | <null> | 123
RowKey2 | abc    | def | <null>
----------------------------------------------

How is data stored in HFiles for the table above (assuming I did not upsert
null values for cf.b and cf.c) ? Is it Option-I or Option-II?

*Option-I:*
RowKey1, cf.a, 'abc'
RowKey1, cf.b, <null>
RowKey1, cf.c, '123'
RowKey1, 0, <null>
RowKey2, cf.a, 'abc'
RowKey2, cf.b, 'def'
RowKey2, cf.c, <null>
RowKey2, 0, <null>

*Option-II:*
RowKey1, cf.a, 'abc'
RowKey1, cf.c, '123'
RowKey1, 0, <null>
RowKey2, cf.a, 'abc'
RowKey2, cf.b, 'def'
RowKey2, 0, <null>

Thanks

Reply via email to