Have you ever wondered how spark.read.format works internally

Spark uses Java’s service locator design pattern to load different implementations of file interfaces based on format specified.