VardhanThigle opened a new issue, #31467:
URL: https://github.com/apache/beam/issues/31467

   # Context
   JdbcIO seems to always default to `200` partitions 
(`DEFAULT_NUM_PARTITIONS`). This is set by default when the object is 
constructed 
[here](https://github.com/apache/beam/blob/master/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java#L362)
 
   There seems to be no way to over-ride this with a `null` value. Hence the 
[code](https://github.com/apache/beam/blob/b50ad0fe8fc168eaded62efb08f19cf2aea341e2/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java#L1398)
 that checks the null value and tries to auto infer the number of partitions 
based on the row count seems never runs.
   
   # Request for help
   Could you please clarify a few doubts around this?
   
   1. Is this behavior intentional?
   2. Could you please help explain the rational behind the heuristic in 
[L1398](https://github.com/apache/beam/blob/b50ad0fe8fc168eaded62efb08f19cf2aea341e2/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java#L1398)?
   


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