I have an s3 bucket with nearly 100k gzipped JSON files.
These files are called [timestamp].json instead of the more sensible [timestamp].json.gz.
I have other processes that use them so renaming is not an option and copying them is even less ideal.
I am using spark.read.json([pattern]) to read these files. If I rename the filename to contain the .gz this works fine, but whilst the extension is just .json they cannot be read.
Is there any way I can tell spark that these files are gzipped?