<commit_before>REGISTER '/usr/hdp/current/phoenix-client/phoenix-client.jar'

A = LOAD 'crimes_geohash' USING PigStorage('\t');
STORE A INTO 'hbase://CRIMES' USING org.apache.phoenix.pig.PhoenixHBaseStorage('$ZK_HOST:2181:/hbase-unsecure', '-batchSize 1000');<commit_msg>Added types to LOAD statement in ingest pig script. Data was being cast incorrectly and landing as the wrong value in Phoenix.<commit_after>REGISTER '/usr/hdp/current/phoenix-client/phoenix-client.jar'

A = LOAD 'crimes_geohash' USING PigStorage('\t') AS (id:int, case:chararray, d:chararray, block:chararray, iucr:chararray, pri:chararray, descr:chararray, loc_desc:chararray, arrest:chararray, domestic:chararray, beat:chararray, district:chararray, ward:int, comm:int, fbi:chararray, x:int, y:int, year:int, updated:chararray, latitude:double, longitude:double, location:chararray, geohash:chararray);

STORE A INTO 'hbase://CRIMES' USING org.apache.phoenix.pig.PhoenixHBaseStorage('$ZK_HOST:2181:/hbase-unsecure', '-batchSize 1000');
{'fraction_non_alphanumeric': 0.1378968253968254, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 7.6239316239316235, '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': '3491161', 'n_tokens_mistral': 372, 'n_tokens_neox': 356, 'n_words': 74}