Skip to content

Commit 94be418

Browse files
committed
BUG: use trim to remove any extraneous spaces while parsing s3 url in manifest
1 parent e53e79f commit 94be418

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-
REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '') AS s3_url,
668+
TRIM(REGEXP_REPLACE(regexp_replace(manifest_cp_cmd, 'cp ', ''), '\\s[^\\s]*$', '')) AS s3_url,
669669
FROM
670670
manifest_df )
671671
SELECT

0 commit comments

Comments
 (0)