我正在尝试使用Hbase的Apache Phoenix。当我运行试图获得当前时间使用选择current_time()
,它给了我一些奇怪的价值。 (292278994-08-17 07:12:55.807)。同样对于current_date()
或now()
查询。我无法理解这是什么意思,以及如何获得当前时间(正如我们从mysql now()
函数中获得的那样)。因此,我无法将视图列的数据类型设置为日期或时间戳,因为它执行了一些奇怪的转换。Apache Phoenix当前时间
任何人都可以帮我找出解决方案。
你能附上完整的查询? – IgorekPotworek
1. select current_date() 2. select current_time() 3. select now() 所有3都给出相同的奇怪值 –