获取错误:
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\u crt类型是timestamp
1条答案
按热度按时间olhwl3o21#
你用的是哪种版本的Phoenix?
时间戳的功能对我来说很有吸引力。您的查询将是:
select * from USER_T where USR_CRT = TO_TIMESTAMP('2017-08-30 06:21:46.732')
我在aws emr上使用phoenix 4.11.0和hbase 1.3.1以及hadoop 2.7.3