[WIP][SPARK-4131][SQL] Writing data into the filesystem from queries