Accessing external file in Python UDF
All added files are located in the current working directory (./
) of UDF script.
If you add a single file using ADD FILE /dir1/dir2/dir3/myfile.txt
, its path will be
./myfile.txt
If you add a directory using ADD FILE /dir1/dir2
, the file's path will be
./dir2/dir3/myfile.txt