的Hadoop 2.7.3
获取错误:
ERROR 203 (22005): Type mismatch. VARCHAR and TIMESTAMP for '2017-08-30 06:21:46.732'
SQLState: 22005
ErrorCode: 203
使用Apache.pheonix
在Squirrel SQL客户端执行以下查询时select * from USER_T where USR_CRT=cast('2017-08-30 06:21:46.732' AS timestamp)
和usr_crt类型是时间戳
phoenix的版本?
使用功能to_timestamp对我来说就像魅力一样。您的查询将是:
select * from USER_T where USR_CRT = TO_TIMESTAMP('2017-08-30 06:21:46.732')
我正在使用HBase 1.3.1的Phoenix 4.11.0和AWS EMR