beliefer opened a new pull request, #43557: URL: https://github.com/apache/spark/pull/43557
### What changes were proposed in this pull request? https://github.com/apache/spark/pull/43530 provides a new method: ``` /** * Converts an Avro schema to a corresponding Spark SQL schema. * * @since 4.0.0 */ def toSqlType(avroSchema: Schema, useStableIdForUnionType: Boolean): SchemaType = { toSqlTypeHelper(avroSchema, Set.empty, useStableIdForUnionType) } ``` Because take AvroOptions as parameter causes the performance regression, the old toSqlType looks very useless. This PR also improve some caller of `toSqlType` by pass useStableIdForUnionType directly. ### Why are the changes needed? Deprecate toSqlType(avroSchema: Schema, …useStableIdForUnionType: Boolean): SchemaType ### Does this PR introduce _any_ user-facing change? 'No'. ### How was this patch tested? Exists test cases. ### Was this patch authored or co-authored using generative AI tooling? 'No'. -- 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]
