apache phoenix 에서 timestamp 타입을 utc로 저장했다.
이를 현재 시간(gmt +9)로 보고 싶다면 아래와 같은 쿼리를 실행한다.
select CONVERT_TZ(timestamp, 'UTC', 'Asia/Seoul')
기타 phoenix 함수는 아래를 참조한다.
https://phoenix.apache.org/language/functions.html
'hadoop' 카테고리의 다른 글
| 얀(yarn) 기반 spark 애플리케이션 종료 방법 (0) | 2019.01.11 |
|---|---|
| [hadoop] No lease on .. File does not exist. (0) | 2018.11.30 |
| [phoenix] 피닉스의 timestamp 타입 값을 현재시간으로 확인하기 (0) | 2018.11.20 |
| [Hbase-Phoenix] phoenix.schema.isNamespaceMappingEnabled, Cannot create schema because config phoenix.schema.isNamespaceMappingEnabled for enabling name space mapping isn't enabled 에러 발생 (0) | 2018.11.01 |
| [hbase-phoenix] jdbc driver (0) | 2018.11.01 |
| [hive] json 필드 이름에 특수 문자가 포함시 쿼리 보내기 (1) | 2018.04.30 |



댓글을 달아 주세요