[SPARK-3343] [SQL] Add serde support for CTAS