Hi! This seems like a bug to me. Could you share the whole exception stack (if the whole stack is not displayed in the terminal, you can search in the logs) so that others can diagnose this problem?
Egor Ryashin <riashin.e...@gmail.com> 于2022年1月10日周一 22:54写道: > Hey, > > I use Flink 1.14 and run this query with sql-client: > > SET 'sql-client.execution.result-mode' = 'tableau'; > SET 'execution.runtime-mode' = 'batch’; > > create table data( > id STRING, > account_id STRING, > a_id STRING, > `timestamp` STRING > ) with ( > 'connector'='filesystem', > 'path'='/Volumes/mobiledisk/data', > 'format' = 'json' > ); > > select count(distinct id) from (select id from data limit 1000000);` > > and get this error almost instantly: > *[ERROR] Could not execute SQL statement. Reason:* > *java.lang.NullPointerException: Initial Segment may not be null* > > (This query does work in streaming mode though. ) > > Thanks > >