initial stage
This commit is contained in:
parent
28d2e96842
commit
b2329a7b63
|
@ -154,7 +154,7 @@ for config_name, config in configs.items():
|
|||
continue
|
||||
print(f'Processing {indexname}: {key}')
|
||||
s3_obj = hook.get_key(key, bucket_name=kwargs["params"]["EOSC_CATALOG_BUCKET"])
|
||||
with io.BufferedReader(gzip.GzipFile(s3_obj.get()["Body"])) if key.endswith(".gz") else codecs.getreader('utf-8')(s3_obj.get()["Body"]) as s3file:
|
||||
with gzip.GzipFile(fileobj=s3_obj.get()["Body"], mode='rb') if key.endswith(".gz") else codecs.getreader('utf-8')(s3_obj.get()["Body"]) as s3file:
|
||||
def _generate_data():
|
||||
for line in s3file:
|
||||
data = json.loads(line)
|
||||
|
|
Loading…
Reference in New Issue