You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2026/07/30 08:22:00 UTC
[jira] [Closed] (FLINK-40022) Table API client hangs when batch query returns an empty result
[ https://issues.apache.org/jira/browse/FLINK-40022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timo Walther closed FLINK-40022.
--------------------------------
Fix Version/s: 2.4.0
Resolution: Fixed
Fixed in master: 20c5508add753d55c7228e4679cd4e52612b5de1
> Table API client hangs when batch query returns an empty result
> ---------------------------------------------------------------
>
> Key: FLINK-40022
> URL: https://issues.apache.org/jira/browse/FLINK-40022
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Reporter: Timo Theusner
> Assignee: Timo Theusner
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.4.0
>
>
> {{TableResult.await()}} hangs for a bounded query that produces zero rows. {{await()}} blocks forever and {{await(timeout)}} throws {{{}TimeoutException{}}}, even though the job finished successfully.
> Can be reproduced:
> {code:java}
> TableEnvironment tEnv =
> TableEnvironment.create(EnvironmentSettings.newInstance().inBatchMode().build());
> TableResult result = tEnv.executeSql("SELECT * FROM (VALUES (1)) AS t(x) WHERE x < 0");
> result.await(); // hangs forever
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)