SPARK-3807: SparkSql does not work for tables created using custom serde (Incorporated Review Comments)