claudevdm commented on code in PR #41840:
URL: https://github.com/apache/beam/pull/41840#discussion_r4772607737


##########
CHANGES.md:
##########
@@ -156,6 +156,7 @@
 ## Bugfixes
 
 * (Python) Fixed `DecimalCoder` silently rounding decimals with more than 28 
significant digits ([#41706](https://github.com/apache/beam/issues/41706)).
+* (Java) Fixed the JDBC read schema transform (`ReadFromJdbc` and 
`ReadFromMySql` in YAML, Managed MySQL) dropping `fetch_size: -2147483648`, the 
value MySQL needs to stream results, allowed `useCursorFetch=true` in 
`connection_properties` for `ReadFromMySql`, and allowed `Integer.MIN_VALUE` in 
`JdbcIO.readWithPartitions()` 
([#26661](https://github.com/apache/beam/issues/26661)).

Review Comment:
   Can we say under Breaking Changes, that negative fetch sizes other than 
-2147483648 are now rejected? With `fetch_size: -1`, the JDBC read schema 
transform on master ignores the value and reads with the default 50,000; on 
this branch it fails at construction with `fetchSize must be >= 0 or equal to 
Integer.MIN_VALUE (-2147483648)`. That covers YAML 
`ReadFromJdbc`/`ReadFromMySql`/`ReadFromPostgres`/`ReadFromSqlServer`/`ReadFromOracle`
 and Managed. Probably rare, but anyone who set such a value will meet it on 
upgrade. For example, append: "Other negative `fetch_size` values, which were 
ignored, are now rejected.



-- 
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]

Reply via email to