You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by 魏烽 <we...@nequal.com> on 2020/08/11 14:26:53 UTC

flink1.11 sql使用问题

各位大佬好:

在使用flink1.11 sql客户端的时候,只能只用最基本的count,group by、order by、join等都无法实现,请问这个是什么原因呢,感谢!


Flink SQL> select count(t2.superid) from cdp_profile_union t1 inner join cdp_crowd_10002 t2 on t1.superid=t2.superid;

[ERROR] Could not execute SQL statement. Reason:

org.apache.flink.table.api.ValidationException: SQL validation failed. null


Flink SQL> select superid from cdp_profile_union group by superid;

[ERROR] Could not execute SQL statement. Reason:

org.apache.flink.table.api.ValidationException: SQL validation failed. null

Re: flink1.11 sql使用问题

Posted by Shengkai Fang <fs...@gmail.com>.
能展示下完整的例子吗? 我用的时候没有这种情况。

魏烽 <we...@nequal.com>于2020年8月11日 周二下午10:27写道:

> 各位大佬好:
>
> 在使用flink1.11 sql客户端的时候,只能只用最基本的count,group by、order
> by、join等都无法实现,请问这个是什么原因呢,感谢!
>
>
> Flink SQL> select count(t2.superid) from cdp_profile_union t1 inner join
> cdp_crowd_10002 t2 on t1.superid=t2.superid;
>
> [ERROR] Could not execute SQL statement. Reason:
>
> org.apache.flink.table.api.ValidationException: SQL validation failed. null
>
>
> Flink SQL> select superid from cdp_profile_union group by superid;
>
> [ERROR] Could not execute SQL statement. Reason:
>
> org.apache.flink.table.api.ValidationException: SQL validation failed. null
>