Skip to content

Commit

Permalink
ENH: simplify s3_url extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov committed Aug 21, 2024
1 parent 94be418 commit 206118c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idc_index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def _validate_update_manifest_and_get_download_size(
SELECT
manifest_cp_cmd,
REGEXP_EXTRACT(manifest_cp_cmd, '(?:.*?\\/){{3}}([^\\/?#]+)', 1) AS manifest_crdc_series_uuid,
TRIM(REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '')) AS s3_url,
REGEXP_EXTRACT(manifest_cp_cmd, 's3://\\S+') AS s3_url,
FROM
manifest_df )
SELECT
Expand Down

0 comments on commit 206118c

Please sign in to comment.