类型不匹配带有pheonix的varchar和timestamp

w3nuxt5m  于 2021-06-08  发布在  Hbase
关注(0)|答案(1)|浏览(468)

获取错误:

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

olhwl3o2

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

相关问题