rokadepiyush49-rgb opened a new issue, #41600:
URL: https://github.com/apache/beam/issues/41600
### What happened?
Four messages in the Python SDK are plain strings with `{...}` placeholders,
so they print the placeholder instead of the value:
1. `transforms/core.py`, `_ContextParam.__init__`: passing an
already-constructed context manager to `DoFn.BundleContextParam` or
`DoFn.SetupContextParam` raises `TypeError: ... write
{class_name}(tempfile.TemporaryDirectory, args=(...)) rather than
{class_name}(tempfile.TemporaryDirectory(...))`.
2. `transforms/core.py`, `ParDo.infer_batch_converters`: for a DoFn whose
`get_input_batch_type()` returns `None`, the error is `TypeError: process_batch
method on {self.fn!r} does not have an input type annoation`.
3. `typehints/schemas.py`, `SchemaTranslation.atomic_value_to_runner_api`:
`ValueError: Unrecognized atomic_type {atomic_type} when encoding value
{value}`.
4. `runners/worker/data_sampler.py`, `DataSampler.sampler_for_output`: the
warning reads `Out-of-bounds access for transform "..." and output
"{output_index}" OutputSampler. ...`.
To reproduce the first one:
```python
import contextlib
import apache_beam as beam
beam.DoFn.BundleContextParam(contextlib.nullcontext())
```
The same kind of bug was fixed in `yaml/` by #41165, and #41134 fixes more
there.
### Issue Priority
Priority: 3 (minor)
### Issue Components
- [x] Component: Python SDK
--
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]