Requirement : Copy all the files starting with name "DATA_<timestamp>.parquet " available in gen1 path to gen2 path , while copying the files we have to rename the files . Replace "DATA<timestamp>.parquet" with "GEN2-DATA-FILE__<timestamp>.parquet" . Timestamp should be the old one only.
Steps I followed :
- fetch all metadata available in gen1 path
- Filter with filename using @statswith() function
- applied for each and used copy activity
- configured source and sink in copy activity
- facing issue in sink I tried using replace() function for filename but its not giving any result. For each activity getting executed but I am not getting any output
filename expression I used : @replace(item.name,'DATA','GEN2-DATA-FILE')
Please let me know what expression I should use to achieve the result