Apache Phoenix 不显示未来的记录

Apache Phoenix does not show future records

我通过

在 hbase 中添加了一条新记录(以编程方式)
val row = new Put(rowKey, hTimestamp)

并通过 hbase shell

put 't1', 'r1', 'c1', 'value', 1470412800000

带有未来的时间戳。

在这两种情况下,在 Phoenix CLI 中,它都没有显示记录。但是HBase里面有记录

Phoenix 不支持吗?

这是设计使然; Phoenix 查询,通过 JDBC 并且可能是 CLI,默认使用当前时间戳作为与 HBase 记录关联的最大时间戳。这就是 Phoenix 允许检索 multi-versioned 条记录的方式。

请参阅 https://phoenix.apache.org/faq.html#Can_phoenix_work_on_tables_with_arbitrary_timestamp_as_flexible_as_HBase_API 了解如何修改 Phoenix 连接的 "current timestamp" - 如果您将其设置为未来时间戳值之后的时间戳,您将能够检索您的 future-dated 记录。大概 CurrentSCN 值也可以提供给 CLI?