use of org.apache.flink.table.planner.plan.nodes.exec.spec.IntervalJoinSpec in project flink by apache.
the class IntervalJoinSpecJsonSerdeTest method testIntervalJoinSpecSerde.
@Test
public void testIntervalJoinSpecSerde() throws IOException {
JoinSpec joinSpec = new JoinSpec(FlinkJoinType.ANTI, new int[] { 1 }, new int[] { 1 }, new boolean[] { true }, null);
IntervalJoinSpec.WindowBounds windowBounds = new IntervalJoinSpec.WindowBounds(true, 0L, 10L, 1, 2);
IntervalJoinSpec actual = new IntervalJoinSpec(joinSpec, windowBounds);
assertEquals(actual, mapper.readValue(mapper.writeValueAsString(actual), IntervalJoinSpec.class));
}
Aggregations