Description
When executing df.summary(), Spark SQL converts String columns as Double for the
percentiles/mean/stddev metrics.
This can cause runtime errors with ANSI mode on.
Since this API is for getting a quick summary of the Dataframe, I suggest using "TryCast" for the problematic stats so that the API still works under ANSI mode.