16
16
* limitations under the License.
17
17
*/
18
18
19
- package org .apache .flink .table .planner .plan .nodes .exec .stream ;
19
+ package org .apache .flink .table .planner .plan .nodes .exec .common ;
20
20
21
21
import org .apache .flink .table .api .config .TableConfigOptions ;
22
+ import org .apache .flink .table .planner .plan .nodes .exec .batch .BatchExecWindowTableFunction ;
23
+ import org .apache .flink .table .planner .plan .nodes .exec .stream .StreamExecWindowTableFunction ;
22
24
import org .apache .flink .table .test .program .SinkTestStep ;
23
25
import org .apache .flink .table .test .program .SourceTestStep ;
24
26
import org .apache .flink .table .test .program .TableTestProgram ;
25
27
import org .apache .flink .types .Row ;
26
28
27
29
import java .math .BigDecimal ;
28
30
29
- /** {@link TableTestProgram} definitions for testing {@link StreamExecWindowJoin}. */
31
+ /**
32
+ * {@link TableTestProgram} definitions for testing {@link BatchExecWindowTableFunction} and {@link
33
+ * StreamExecWindowTableFunction}.
34
+ */
30
35
public class WindowTableFunctionTestPrograms {
31
36
32
37
static final Row [] BEFORE_DATA = {
@@ -110,7 +115,7 @@ public class WindowTableFunctionTestPrograms {
110
115
+ " %s\n "
111
116
+ " GROUP BY window_start, window_end" ;
112
117
113
- static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF =
118
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF =
114
119
TableTestProgram .of (
115
120
"window-table-function-tumble-tvf" ,
116
121
"validates window table function using tumble tvf windows" )
@@ -133,7 +138,7 @@ public class WindowTableFunctionTestPrograms {
133
138
.runSql (String .format (QUERY_TVF , String .format (TUMBLE_TVF , "bid_time" )))
134
139
.build ();
135
140
136
- static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_POSITIVE_OFFSET =
141
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_POSITIVE_OFFSET =
137
142
TableTestProgram .of (
138
143
"window-table-function-tumble-tvf-positive-offset" ,
139
144
"validates window table function using tumble tvf windows with positive offset" )
@@ -158,7 +163,7 @@ public class WindowTableFunctionTestPrograms {
158
163
QUERY_TVF , String .format (TUMBLE_TVF_OFFSET , "bid_time" , "6" )))
159
164
.build ();
160
165
161
- static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_NEGATIVE_OFFSET =
166
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_NEGATIVE_OFFSET =
162
167
TableTestProgram .of (
163
168
"window-table-function-tumble-tvf-negative-offset" ,
164
169
"validates window table function using tumble tvf windows with negative offset" )
@@ -183,7 +188,7 @@ public class WindowTableFunctionTestPrograms {
183
188
QUERY_TVF , String .format (TUMBLE_TVF_OFFSET , "bid_time" , "-6" )))
184
189
.build ();
185
190
186
- static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_AGG =
191
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_AGG =
187
192
TableTestProgram .of (
188
193
"window-table-function-tumble-tvf-agg" ,
189
194
"validates window table function using tumble tvf windows with aggregation" )
@@ -200,7 +205,7 @@ public class WindowTableFunctionTestPrograms {
200
205
.runSql (String .format (QUERY_TVF_AGG , String .format (TUMBLE_TVF , "bid_time" )))
201
206
.build ();
202
207
203
- static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_AGG_PROC_TIME =
208
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_TUMBLE_TVF_AGG_PROC_TIME =
204
209
TableTestProgram .of (
205
210
"window-table-function-tumble-tvf-agg-proc-time" ,
206
211
"validates window table function using tumble tvf windows with aggregation and processing time" )
@@ -217,7 +222,7 @@ public class WindowTableFunctionTestPrograms {
217
222
String .format (TUMBLE_TVF , "proc_time" )))
218
223
.build ();
219
224
220
- static final TableTestProgram WINDOW_TABLE_FUNCTION_HOP_TVF =
225
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_HOP_TVF =
221
226
TableTestProgram .of (
222
227
"window-table-function-hop-tvf" ,
223
228
"validates window table function using hop tvf windows" )
@@ -248,7 +253,7 @@ public class WindowTableFunctionTestPrograms {
248
253
.runSql (String .format (QUERY_TVF , String .format (HOP_TVF , "bid_time" )))
249
254
.build ();
250
255
251
- static final TableTestProgram WINDOW_TABLE_FUNCTION_HOP_TVF_AGG =
256
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_HOP_TVF_AGG =
252
257
TableTestProgram .of (
253
258
"window-table-function-hop-tvf-agg" ,
254
259
"validates window table function using hop tvf windows with aggregation" )
@@ -268,7 +273,7 @@ public class WindowTableFunctionTestPrograms {
268
273
.runSql (String .format (QUERY_TVF_AGG , String .format (HOP_TVF , "bid_time" )))
269
274
.build ();
270
275
271
- static final TableTestProgram WINDOW_TABLE_FUNCTION_HOP_TVF_AGG_PROC_TIME =
276
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_HOP_TVF_AGG_PROC_TIME =
272
277
TableTestProgram .of (
273
278
"window-table-function-hop-tvf-agg-proc-time" ,
274
279
"validates window table function using hop tvf windows with aggregation and processing time" )
@@ -284,7 +289,7 @@ public class WindowTableFunctionTestPrograms {
284
289
QUERY_TVF_AGG_PROC_TIME , String .format (HOP_TVF , "proc_time" )))
285
290
.build ();
286
291
287
- static final TableTestProgram WINDOW_TABLE_FUNCTION_CUMULATE_TVF =
292
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_CUMULATE_TVF =
288
293
TableTestProgram .of (
289
294
"window-table-function-cumulate-tvf" ,
290
295
"validates window table function using cumulate tvf windows" )
@@ -310,7 +315,7 @@ public class WindowTableFunctionTestPrograms {
310
315
.runSql (String .format (QUERY_TVF , String .format (CUMULATE_TVF , "bid_time" )))
311
316
.build ();
312
317
313
- static final TableTestProgram WINDOW_TABLE_FUNCTION_CUMULATE_TVF_AGG =
318
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_CUMULATE_TVF_AGG =
314
319
TableTestProgram .of (
315
320
"window-table-function-cumulate-tvf-agg" ,
316
321
"validates window table function using cumulate tvf windows with aggregation" )
@@ -329,7 +334,7 @@ public class WindowTableFunctionTestPrograms {
329
334
.runSql (String .format (QUERY_TVF_AGG , String .format (CUMULATE_TVF , "bid_time" )))
330
335
.build ();
331
336
332
- static final TableTestProgram WINDOW_TABLE_FUNCTION_CUMULATE_TVF_AGG_PROC_TIME =
337
+ public static final TableTestProgram WINDOW_TABLE_FUNCTION_CUMULATE_TVF_AGG_PROC_TIME =
333
338
TableTestProgram .of (
334
339
"window-table-function-cumulate-tvf-agg-proc-time" ,
335
340
"validates window table function using cumulate tvf windows with aggregation" )
0 commit comments