Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在数据工厂的数据流派生列中使用可视表达式生成器从路径下方获取文件名。
/datafactory/raw/files/filename.csv
每一行都有文件路径。所以每一行都需要文件名。
如果文件路径中的计数/是固定的,例如/datafactory/raw/files/filename.csv,您可以在派生列中使用此表达式: 。split(filepath,'/')[5]否则,您可以尝试此表达式:split(filepath,'/')[size(split(filepath,'/'))]。
/
split(filepath,'/')[5]
split(filepath,'/')[size(split(filepath,'/'))]
派生列的数据预览: