Icon

Java Snippets Have Memory

A demonstration of how non-initialisation of variables in a java snippet can lead to unexpected results, but also potentially can be exploited to "retain memory" acquired from previous rows



Sample DataIncorrect variable initialisationCalculate a cumulative sum!Correct variable initialisationLag column!Progressive ConcatenationSequence within groupCounter GenerationTable Creator Java Snippet Java Snippet Java Snippet Java Snippet Java Snippet Java Snippet Java Snippet Sample DataIncorrect variable initialisationCalculate a cumulative sum!Correct variable initialisationLag column!Progressive ConcatenationSequence within groupCounter GenerationTable Creator Java Snippet Java Snippet Java Snippet Java Snippet Java Snippet Java Snippet Java Snippet

Nodes

Extensions

Links