From 6e9b0bcc4fbea8e8f608340ee56e606a461651ad Mon Sep 17 00:00:00 2001 From: "gowthaman.b" Date: Fri, 16 Jun 2023 14:26:26 +0530 Subject: [PATCH] update --- README.md | 4 ++-- main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b868989..81929df 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ Steps * required `--output ` * (optional) to merge all json to single csv `--single` * required `--schema ` - * (optional) # of records to check records for all headers `--metadata ` defaults to 100 + * (optional) # of records to check records for all headers `--metadata ` defaults to 1000 * required `--join-column ` - * required `--name ` * example * `python3 main.py --input /var/tmp/input --output /var/tmp/outputs --schema /var/tmp/schema.json --name transactions --single --metadata 1000 --join-column origin_id` diff --git a/main.py b/main.py index 8f9f13c..b62ab5d 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ parser.add_argument("--input", help="folder containing input json(s)", required= parser.add_argument("--output", help="folder to place csv", required=True, type=pathlib.Path) parser.add_argument("--schema", help="schema json", required=True, type=pathlib.Path) parser.add_argument("--single", action="store_true", help="merge all json files to single output csv") -parser.add_argument("--metadata", type=int, help="how many records to parse for building metadata", default=100) +parser.add_argument("--metadata", type=int, help="how many records to parse for building metadata", default=1000) parser.add_argument("--join-column", help="join column from top-level to merge nested json", required=True) parser.add_argument("--name", help="join column from top-level to merge nested json", required=True)