You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Egor Ryashin <ri...@gmail.com> on 2022/01/10 14:53:59 UTC
'Initial segment may not be null' error
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
Re: 'Initial segment may not be null' error
Posted by Caizhi Weng <ts...@gmail.com>.
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 <ri...@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
>
>