Timo Theusner created FLINK-40022:
-------------------------------------

             Summary: 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


`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)

Reply via email to