fsk119 commented on code in PR #19846:
URL: https://github.com/apache/flink/pull/19846#discussion_r913352482
##########
flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/result/ResultStore.java:
##########
@@ -37,6 +37,13 @@ public class ResultStore {
private static final Logger LOG =
LoggerFactory.getLogger(ResultStore.class);
+ public static final ResultStore DUMMY_RESULT_STORE =
+ new
ResultStore(CloseableIterator.adapterForIterator(Collections.emptyIterator()),
0);
+
+ static {
+ DUMMY_RESULT_STORE.close();
Review Comment:
Because we don't want users to fetch results from the DUMMY store. When
fetching from a closed store, the fetcher will know all results have been
returned.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]