Skip to content

Commit 4d79557

Browse files
author
David Bruce Borenstein
committed
Changed merge_xml.py
1 parent 4e5e07b commit 4d79557

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/merge_xml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
### Handle command line arguments
1919

2020
parser = argparse.ArgumentParser()
21-
parser.add_argument("--input", action="store", help="Path to Parquet file containing xpath-value pairs.", default = "990_long/parsed")
21+
parser.add_argument("--input", action="append", help="Path to Parquet file containing xpath-value pairs.")
2222
parser.add_argument("--output", action="store", help="Path in which to store result. Can be local or S3.")
2323
parser.add_argument("--timestamp", action="store_true", help="If true, append the timestamp to the output path.")
2424
parser.add_argument("--partitions", type=int, action="store", help="Number of partitions to use for the join.", default=400)
@@ -42,7 +42,7 @@
4242
col("location_code").alias("location"))
4343

4444
standardize = udf(lambda xpath : "/Return/" + xpath.strip(), StringType())
45-
df = spark.read.parquet(args.input) \
45+
df = spark.read.parquet(*args.input) \
4646
.repartition(args.partitions) \
4747
.withColumn("xpath", standardize(col("xpath"))) \
4848

0 commit comments

Comments
 (0)