PorridgeSwim commented on code in PR #56153: URL: https://github.com/apache/spark/pull/56153#discussion_r3313877695
########## docs/streaming/ss-migration-guide.md: ########## @@ -23,6 +23,10 @@ Note that this migration guide describes the items specific to Structured Stream Many items of SQL migration can be applied when migrating Structured Streaming to higher versions. Please refer [Migration Guide: SQL, Datasets and DataFrame](../sql-migration-guide.html). +## Upgrading from Structured Streaming 4.1 to 4.2 + +- Since Spark 4.2, `DataStreamReader.table(tableName)` rejects user-specified schemas with an `AnalysisException` (error class `STREAMING_USER_SPECIFIED_SCHEMA_NOT_ALLOWED_IN_TABLE`). Catalog tables declare their own schema, so any schema passed to `DataStreamReader.schema(...)` was always silently dropped; the new check surfaces this misconfiguration as a clear error instead. To restore the previous behavior of silently ignoring the user-specified schema, set `spark.sql.streaming.disallowUserSpecifiedSchemaInTable.enabled` to `false`. Review Comment: polished the guide -- 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]
