Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 10:35 PM
Thanks @Suteja Kanuri for the reply.
One question , how can I pass this dataframe from the job trigger ? Or am I missing something.
I tried the below approach:
df = (spark.read.format("csv")
.option("inferSchema", True)
.option("header", True)
.option("sep", ",")
.load("s3:/<bucket_name>/<subfolder>/"))Then I tried to use input_file_name() method on this dataframe like below but it gave me error saying "no such method":
Let me know if I am missing something ?
For reference I am passing the notebook which gets triggered by the job: