using value that are not passed as parameter
Posted by Michele Bertoni on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/using-value-that-are-not-passed-as-parameter-tp1751.html
Hi everybody,
this question may sounds stupid, but i would like to have it clear
what happens if inside a dataset transformation (e.g. a map) I use something that is declared somewhere else, like a variable or a dataset, and not passed as broadcast dataset nor parameter in the constructor of a rich function?
for example
val a = 2
dataset.filter((v) => v._1 == a)
or
dataset1.flatmap((v) => /* something that uses dataset2 */)
thanks