xinrong-meng opened a new pull request, #48841: URL: https://github.com/apache/spark/pull/48841
### What changes were proposed in this pull request? The PR targets at Spark Connect only. Spark Classic has been handled in https://github.com/apache/spark/pull/48677. `verifySchema` parameter of createDataFrame on Spark Classic decides whether to verify data types of every row against schema. Now it's not supported on Spark Connect. The PR proposes to support `verifySchema` on Spark Connect. By default, `verifySchema` parameter is `pyspark._NoValue`, if not provided, createDataFrame with - `pyarrow.Table`, **verifySchema = False** - `pandas.DataFrame` with Arrow optimization, **verifySchema = spark.sql.execution.pandas.convertToArrowArraySafely** - regular Python instances, **verifySchema = True** numpy ndarray input is not supported. ### Why are the changes needed? ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? ### Was this patch authored or co-authored using generative AI tooling? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
