[
https://issues.apache.org/jira/browse/BEAM-10833?focusedWorklogId=481050&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-481050
]
ASF GitHub Bot logged work on BEAM-10833:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Sep/20 20:41
Start Date: 09/Sep/20 20:41
Worklog Time Spent: 10m
Work Description: udim commented on pull request #12798:
URL: https://github.com/apache/beam/pull/12798#issuecomment-689810083
Fails on py27-cloud:
```
self = <apache_beam.typehints.trivial_inference_test.TrivialInferenceTest
testMethod=testBuildMap>
def testBuildMap(self):
self.assertReturnType(
typehints.Dict[typehints.Any, typehints.Any],
lambda k,
v: {}, [int, float])
self.assertReturnType(
> typehints.Dict[int, float], lambda k, v: {k: v}, [int, float])
apache_beam/typehints/trivial_inference_test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
apache_beam/typehints/trivial_inference_test.py:40: in assertReturnType
trivial_inference.infer_return_type(f, inputs, debug=True, depth=depth))
E AssertionError: Dict[int, float] != Dict[Any, Any]
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 481050)
Time Spent: 1h 10m (was: 1h)
> Error inferring type of tuple output
> ------------------------------------
>
> Key: BEAM-10833
> URL: https://issues.apache.org/jira/browse/BEAM-10833
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Robert Bradshaw
> Assignee: Jayendra
> Priority: P1
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> {code:python}
> with beam.Pipeline() as p:
> class Foo(beam.DoFn):
> def process(self, element):
> k, v = element
> yield (k, {k:v})
> a = [('a',1), ('a',1), ('b',1)]
> input = p | beam.Create(a)
> print(input.element_type) # ok
> pcoll = input | beam.ParDo(Foo())
> print(pcoll.element_type) # claims Tuple[int, Dict[Any, Any]]
> # BOOM on run due to coder errors
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)