Skip to content

Commit

Permalink
NiFi: fixxed typo in parse script.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Feb 26, 2024
1 parent 877ee7f commit 90e2315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nifi/user-scripts/parse-tika-result-json-to-avro.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def process(self, inputStream, outputStream):

# add text and metadata column to record
avro_data_dict["text"] = json_data_record["result"]["text"]
avro_data_dict["ocr_matadata"] = json_data_record["result"]["metadata"]
avro_data_dict["ocr_metadata"] = json_data_record["result"]["metadata"]
avro_data_dict["ocr_timestamp"] = json_data_record["result"]["timestamp"]

outputStream.write(json.dumps(avro_data_dict).encode("UTF-8"))
Expand Down

0 comments on commit 90e2315

Please sign in to comment.