Re: Accessing variables build within a map/flatmap function within a DS

2019-07-24 Thread Andres Angel
Sure guys thanks for the support. I need to create an register a table based on the content of a DS<>, the point is that within the content I need to parse it somehow and get the part which is the values and the headers. I already tried to create a DS and register the new DS as table with headers

Re: Accessing variables build within a map/flatmap function within a DS

2019-07-24 Thread Chesnay Schepler
Note that this will only work when running the the application in the IDE; specifically it will not work when running on an actual cluster, since your function isn't executed on the same machine as your (presumably) main[] function. We can give you better advice if you tell us what exactly

Re: Accessing variables build within a map/flatmap function within a DS

2019-07-24 Thread Caizhi Weng
Hi Andres, Just define a variable outside and modify it in the anonymous class. Andres Angel 于2019年7月24日周三 下午8:44写道: > Hello everyone, > > I was wondering if there is a way how to read the content of a varible > build within a map/flatmap function out of the DS method. > > example: > >

Accessing variables build within a map/flatmap function within a DS

2019-07-24 Thread Andres Angel
Hello everyone, I was wondering if there is a way how to read the content of a varible build within a map/flatmap function out of the DS method. example: DataStream dsString = env.fromElements("1,a,1.1|2,b,2.2,-2", "3,c|4,d,4.4"); DataStream dsTuple = dsString.flatMap(new FlatMapFunction()