Skip to content

Commit

Permalink
BUG: use trim to remove any extraneous spaces while parsing s3 url in…
Browse files Browse the repository at this point in the history
… manifest
  • Loading branch information
vkt1414 committed Aug 21, 2024
1 parent e53e79f commit 94be418
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,
REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '') AS s3_url,
TRIM(REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '')) AS s3_url,
FROM
manifest_df )
SELECT
Expand Down

0 comments on commit 94be418

Please sign in to comment.