Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 442 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 442 Bytes

impala-get-json-object-udf

A UDF for Cloudera Impala ( hive get_json_object equivalent )

build

  • cmake .
  • make

install

  • upload build/jsonUdf.ll to [hdfs path]/jsonUdf.ll
  • impala-shell> create function [database.]json_get_object (string, string) returns string location '[hdfs path]/jsonUdf.ll' symbol='JsonGetObject';

usage

  • impala-shell> select json_get_object('{"name":"steven"}', '$.name');
  • --> returns a string steven