티스토리 뷰

공부

[Spark][SQL] GET_JSON_OBJECT

seunggabi 승가비 2021. 1. 8. 07:11
728x90
SELECT
  GET_JSON_OBJECT(ext, '$.id') track_id,
  COUNT(1) cnt
FROM {db}.{table}
WHERE 1=1
  AND day = 20210107
  AND GET_JSON_OBJECT(ext, '$.tp') = 'TRACK'
  GROUP BY GET_JSON_OBJECT(ext, '$.id')
LIMIT 1000

 

728x90

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

[Regexp] ignore case sensitivity  (0) 2021.01.08
[Java] remove line break `(\n|\r|\u0001)`  (0) 2021.01.08
[Spark][SQL] GET_JSON_OBJECT  (0) 2021.01.08
[zeppelin] pyspark is not responding  (0) 2021.01.06
[JS] html onLoad not working  (0) 2021.01.04
[SSL] ssl for free  (0) 2021.01.01
댓글
댓글쓰기 폼