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

   ### What happened?
   
   The following code failed to run in Prism. 
   ```
   import logging
   
   import apache_beam as beam
   from apache_beam.options.pipeline_options import PipelineOptions
   from apache_beam.transforms.window import TimestampedValue, SlidingWindows
   from apache_beam.utils.timestamp import Timestamp
   
   logging.basicConfig(level=logging.INFO)
   
   
   options = PipelineOptions([
       "--environment_type=LOOPBACK",
       "--runner=PrismRunner",
   ])
   
   
   with beam.Pipeline(options=options) as p:
     now = Timestamp.now()
     _ = (
         p | beam.Create([TimestampedValue(1, 1),
                          TimestampedValue(2, 2),
                          TimestampedValue(3, 3),
                          TimestampedValue(4, 4),
                          TimestampedValue(5, 5),
                          TimestampedValue(6, 6),
                          TimestampedValue(7, 7),
                          TimestampedValue(8, 8),
                          TimestampedValue(9, 9),
                          TimestampedValue(10, 10)],
                          )
         | beam.WithKeys(0)
         | beam.WindowInto(SlidingWindows(5, 10))
         | beam.LogElements(
             prefix="result=",
             level=logging.WARNING,
             with_timestamp=True,
             with_window=True,
             use_epoch_time=True))
   
   ```
   
   Error message is like:
   
   ```
   error decoding residual header: sdk provided a windowed value header 0 
windows
   ```
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


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