티스토리 뷰

공부

[Hive] parse JSON

승가비 2020. 7. 24. 19:51
728x90
SELECT q1.StudentId, q1.Grade
FROM StudentsOneLine jt
LATERAL VIEW JSON_TUPLE(jt.json_body, 'StudentId', 'Grade') q1
  AS StudentId, Grade;

https://docs.microsoft.com/ko-kr/azure/hdinsight/hadoop/using-json-in-hive

 

Apache Hive를 사용 하 여 & 프로세스 JSON 분석-Azure HDInsight

Azure HDInsight의 Apache Hive를 사용 하 여 JSON 문서를 사용 하 고 분석 하는 방법을 알아봅니다.

docs.microsoft.com

 

728x90

'공부' 카테고리의 다른 글

[Presto] properties.config  (0) 2020.07.24
FQDN(Fully Qualified Domain Name)  (0) 2020.07.24
[SQL] count distinct with conditions  (0) 2020.07.24
[Maven] build project without version  (0) 2020.07.24
[Hive] get json keys  (0) 2020.07.24
댓글