I'm trying to read csv files from a directory with a particular pattern
I want to match all the files with that contains this string "logs_455DD_33
t should match anything like "
machine_logs_455DD_33.csv
logs_455DD_33_2018.csv
machine_logs_455DD_33_2018.csv
I've tried the following regex but it doesn't match files with the above format .
file = "hdfs://data/logs/{*}logs_455DD_33{*}.csv"
df = spark.read.csv(file)
file = "hdfs://data/logs/*logs_455DD_33*.csv"