Re: Unable to use MapState with DoFnTester

2018-02-02 Thread Eugene Kirpichov
It's not. DoFnTester in general is deprecated: use TestPipeline and PAssert instead. On Fri, Feb 2, 2018, 12:10 PM Ankur Chauhan wrote: > Hi, > > I am trying to write some tests for a DoFn that has one StateSpecs.map() > type declared. When I run this test I get this error. > > java.lang.Unsuppo

Unable to use MapState with DoFnTester

2018-02-02 Thread Ankur Chauhan
Hi, I am trying to write some tests for a DoFn that has one StateSpecs.map() type declared. When I run this test I get this error. java.lang.UnsupportedOperationException: Parameter StateParameter{referent=StateDeclaration{id=indexKeys, field=private final org.apache.beam.sdk.state.StateSpec com.