Skip to content

timestamps #1

@cambridgemike

Description

@cambridgemike

Perhaps I'm misunderstanding something, but timestamps are not working the way I would expect them to

client.create_row("my_table","key1", Time.now.to_i, [{:name=>"name", :value=>"value"}])

row = client.show_row("my_table","key1")
=> #<HBase::Model::Row:0x105e2ce98 @name="key1", @columns=[#<HBase::Model::Column:0x105e2d028 @name="name", @timestamp=1262699564874, @value="value">], @timestamp=nil, @table_name="my_table", @total_count=0>

Time.at(row.columns.first.timestamp)
=> Wed May 11 02:07:54 -0500 41983

From the source I don't see where this column timestamp gets set, and I'm confused as to why the row timestamp is nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions