jonathansudhakar1 commented on issue #20592: URL: https://github.com/apache/beam/issues/20592#issuecomment-7348148872
@damccorm, this still applies on current master. Six Python modules repeat the same cross-language setup text in their module docstrings (an intro, **Setup** with "Option 1: use the default expansion service" / "Option 2: specify a custom expansion service", and **More information**): `io/gcp/spanner.py`, `io/jdbc.py`, `io/kafka.py`, `io/kinesis.py`, `io/snowflake.py` and `io/debezium.py`. `io/external/generate_sequence.py` has a shorter version. Parts of it are out of date: - The runner lists disagree with each other and with the programming guide's [Runner Support](https://beam.apache.org/documentation/programming-guide/#x-lang-transform-runner-support) section. For example, `spanner.py` and `kinesis.py` say only portable Flink and Spark are supported, `jdbc.py` and `debezium.py` add Dataflow v2, and `snowflake.py` says it's "tested against Flink portable runner". - All seven link to https://beam.apache.org/roadmap/portability/ for "more information", not to the [Multi-language pipelines](https://beam.apache.org/documentation/programming-guide/#multi-language-pipelines) section the issue refers to. Proposed change (docstrings only, no code changes): in each module, replace the shared Setup and More information text with a short paragraph: these are cross-language transforms implemented in Java, the default expansion service is started automatically and needs a Java runtime, `expansion_service` can point to your own, and links to [§13.2.2](https://beam.apache.org/documentation/programming-guide/#use-x-lang-transforms) and §13.3. Module-specific facts stay: which expansion-service jar each module uses, Kafka's notes, and Flink's job-server expansion service on port 8097. I'd check the rendered docstrings with `pydoc` and run `pre-commit`/`pylint` on the touched files. Is this still wanted? If so, do you prefer that short paragraph in each module, or one shared paragraph (for example in the `apache_beam.transforms.external` docstring) that each module links to? -- 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]
