Skip to content

Commit 206118c

Browse files
committed
ENH: simplify s3_url extraction
1 parent 94be418 commit 206118c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idc_index/index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def _validate_update_manifest_and_get_download_size(
665665
SELECT
666666
manifest_cp_cmd,
667667
REGEXP_EXTRACT(manifest_cp_cmd, '(?:.*?\\/){{3}}([^\\/?#]+)', 1) AS manifest_crdc_series_uuid,
668-
TRIM(REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '')) AS s3_url,
668+
REGEXP_EXTRACT(manifest_cp_cmd, 's3://\\S+') AS s3_url,
669669
FROM
670670
manifest_df )
671671
SELECT

0 commit comments

Comments
 (0)