For example, let's say I have a file called
some-file
, which is a gzipped text file. If I try
spark.read.text('some-file')
, it will return a bunch of gibberish since it doesn't know that the file is gzipped. I'm looking to manually tell spark the file is gzipped and decode it based on that. I did some searching but don't see a good answer to the question or the answers say you can't.