<commit_before>This is a collection of extensions for Hive.

These three UDFs allow more complicated JSON operations, e.g.,

create temporary function get_json_full as 'com.thinkbiganalytics.hive.udf.UDFFullJsonPath';
create temporary function array_offset as 'com.thinkbiganalytics.hive.udf.UDFArrayOffset';
create temporary function array_deref as 'com.thinkbiganalytics.hive.udf.UDFArrayDeref';

e.g.,

select array_deref(get_json_full(json, '$.*.val),
  array_offset(get_json_full(json, '$.*.key'), 'two')

run on<commit_msg>Fix typo in README<commit_after>This is a collection of extensions for Hive.

These three UDFs allow more complicated JSON operations, e.g.,

create temporary function get_json_full as 'com.thinkbiganalytics.hive.udf.UDFFullJsonPath';
create temporary function array_offset as 'com.thinkbiganalytics.hive.udf.UDFArrayOffset';
create temporary function array_deref as 'com.thinkbiganalytics.hive.udf.UDFArrayDeref';

e.g.,

select array_deref(get_json_full(json, '$.*.val'),
  array_offset(get_json_full(json, '$.*.key'), 'two')

run on
{'fraction_non_alphanumeric': 0.106203007518797, 'fraction_numerical': 0.0, 'mean_word_length': 6.294520547945205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1613153', 'n_tokens_mistral': 362, 'n_tokens_neox': 355, 'n_words': 90}