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 忝忝向仧 <15...@qq.com> on 2020/10/04 09:09:23 UTC
Flink的table-api不支持.
Hi,all:
Table api的sql查询里面join的时候不能写"."么?
这样写就会报错 如下
Exception in thread "main" org.apache.flink.table.api.SqlParserException: SQL parse failed. Encountered "." at line 1, column 36.
Was expecting one of:
<EOF>
"EXCEPT" ...
"FETCH" ...
"FROM" ...
"INTERSECT" ...
"LIMIT" ...
"OFFSET" ...
"ORDER" ...
"MINUS" ...
"UNION" ...
"," ...
Table result = tEnv.sqlQuery("select * from OrderA join OrderB on OrderA.user=OrderB.user");
回复:Flink的table-api不支持.
Posted by 大森林 <ap...@foxmail.com>.
这是官方技术支持吗?
怎么搞得像个邮件形式的论坛?
------------------ 原始邮件 ------------------
发件人: "user-zh" <153488125@qq.com>;
发送时间: 2020年10月4日(星期天) 下午5:09
收件人: "user-zh"<user-zh@flink.apache.org>;
主题: Flink的table-api不支持.
Hi,all:
Table api的sql查询里面join的时候不能写"."么?
这样写就会报错 如下
Exception in thread "main" org.apache.flink.table.api.SqlParserException: SQL parse failed. Encountered "." at line 1, column 36.
Was expecting one of:
&nbsp; &nbsp; <EOF&gt;&nbsp;
&nbsp; &nbsp; "EXCEPT" ...
&nbsp; &nbsp; "FETCH" ...
&nbsp; &nbsp; "FROM" ...
&nbsp; &nbsp; "INTERSECT" ...
&nbsp; &nbsp; "LIMIT" ...
&nbsp; &nbsp; "OFFSET" ...
&nbsp; &nbsp; "ORDER" ...
&nbsp; &nbsp; "MINUS" ...
&nbsp; &nbsp; "UNION" ...
&nbsp; &nbsp; "," ...
Table result = tEnv.sqlQuery("select * from OrderA join OrderB on OrderA.user=OrderB.user");
Re: Flink的table-api不支持.
Posted by Benchao Li <li...@apache.org>.
user是关键字,需要用`user`来处理一下~
Kyle Zhang <sh...@gmail.com> 于2020年10月9日周五 上午8:34写道:
> 试一试select * from OrderA orderA join OrderB orderB on
> orderA.user=orderB.user
>
> On Sun, Oct 4, 2020 at 5:09 PM 忝忝向仧 <15...@qq.com> wrote:
>
> > Hi,all:
> >
> >
> > Table api的sql查询里面join的时候不能写"."么?
> > 这样写就会报错 如下
> > Exception in thread "main" org.apache.flink.table.api.SqlParserException:
> > SQL parse failed. Encountered "." at line 1, column 36.
> > Was expecting one of:
> > <EOF>
> > "EXCEPT" ...
> > "FETCH" ...
> > "FROM" ...
> > "INTERSECT" ...
> > "LIMIT" ...
> > "OFFSET" ...
> > "ORDER" ...
> > "MINUS" ...
> > "UNION" ...
> > "," ...
> >
> >
> >
> > Table result = tEnv.sqlQuery("select * from OrderA join OrderB on
> > OrderA.user=OrderB.user");
>
--
Best,
Benchao Li
Re: Flink的table-api不支持.
Posted by Kyle Zhang <sh...@gmail.com>.
试一试select * from OrderA orderA join OrderB orderB on
orderA.user=orderB.user
On Sun, Oct 4, 2020 at 5:09 PM 忝忝向仧 <15...@qq.com> wrote:
> Hi,all:
>
>
> Table api的sql查询里面join的时候不能写"."么?
> 这样写就会报错 如下
> Exception in thread "main" org.apache.flink.table.api.SqlParserException:
> SQL parse failed. Encountered "." at line 1, column 36.
> Was expecting one of:
> <EOF>
> "EXCEPT" ...
> "FETCH" ...
> "FROM" ...
> "INTERSECT" ...
> "LIMIT" ...
> "OFFSET" ...
> "ORDER" ...
> "MINUS" ...
> "UNION" ...
> "," ...
>
>
>
> Table result = tEnv.sqlQuery("select * from OrderA join OrderB on
> OrderA.user=OrderB.user");