Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 07:18 AM
Will look into that! thanks, really is a very simple process, the regex seems to be what is taking more time, that and the AppendDataExecV1. This is the other task that takes 38 minutes. The logic of the regex is this
dataframe = self.spark.read \
.text(source_files_path) \
.withColumn('source_file', source_file_derivation)
where source_file_derivation is:
source_file_derivation = regexp_replace(reverse(split(reverse(input_file_name()), '/')[0]), '%23', '#')
To add the filename on a column of the data frame (we read multiple files).
Thanks!