Re: Weird Flink SQL error

2022-11-24 Thread Dan Hill
>>>> DATE_FORMAT(TUMBLE_ROWTIME(rowtime, INTERVAL '1' DAY), '-MM-dd'), >>>> ROW( >>>> platform_id, >>>> content_id >>>> ) >>>> FROM content_event >>>> GROUP BY >>&g

Re: Weird Flink SQL error

2022-11-24 Thread Leonard Xu
content_id > ) > FROM content_event > GROUP BY > platform_id, > content_id, > TUMBLE(rowtime, INTERVAL '1' DAY) > > SELECT * FROM test_content_metrics_view > > > On Wed, Nov 23, 2022 at 1:19 PM Dan Hill <mailto:quietgol...@gmail

Re: Weird Flink SQL error

2022-11-24 Thread Dan Hill
.16.0 and I get the same error. >>>> >>>> On Wed, Nov 23, 2022 at 9:47 AM Dan Hill wrote: >>>> >>>>> For the error `Encountered "." at line 1, column 119.`, here are the >>>>> confusing parts: >>>>> >>>>> 1. The error happens when I

Re: Weird Flink SQL error

2022-11-24 Thread Dan Hill
hat SQL statement. >>>> 3. None of the SQL that I've written has a period "." in it. >>>> >>>> >>>> >>>> On Wed, Nov 23, 2022 at 8:32 AM Dan Hill wrote: >>>> >>>>> I'm using Flink 1.14.4 >>>>> >>>>>

Re: Weird Flink SQL error

2022-11-23 Thread Dan Hill
v 23, 2022, 02:28 yuxia wrote: >>>> >>>>> Hi, Dan. >>>>> I'm wondering what type of error you expect. IMO, I think most engines >>>>> throw parse error in such way which tell you encounter an unexpected >>>>> token.

Re: Weird Flink SQL error

2022-11-23 Thread Dan Hill
; I'm wondering what type of error you expect. IMO, I think most engines >>>> throw parse error in such way which tell you encounter an unexpected token. >>>> >>>> Best regards, >>>> Yuxia >>>> >>>> ---

Re: Weird Flink SQL error

2022-11-23 Thread Dan Hill
nter an unexpected token. >>> >>> Best regards, >>> Yuxia >>> >>> -- >>> *发件人: *"Dan Hill" >>> *收件人: *"User" >>> *发送时间: *星期三, 2022年 11 月 23日 下午 1:55:20 >>> *主题: *Weird

Re: Weird Flink SQL error

2022-11-23 Thread Dan Hill
pect. IMO, I think most engines >> throw parse error in such way which tell you encounter an unexpected token. >> >> Best regards, >> Yuxia >> >> ------ >> *发件人: *"Dan Hill" >> *收件人: *"User" >> *发送时

Re: Weird Flink SQL error

2022-11-23 Thread Dan Hill
--- > *发件人: *"Dan Hill" > *收件人: *"User" > *发送时间: *星期三, 2022年 11 月 23日 下午 1:55:20 > *主题: *Weird Flink SQL error > > Hi. I'm hitting an obfuscated Flink SQL parser error. Is there a way to > get better errors for Flink SQL

Re: Weird Flink SQL error

2022-11-23 Thread yuxia
Hi, Dan. I'm wondering what type of error you expect. IMO, I think most engines throw parse error in such way which tell you encounter an unexpected token. Best regards, Yuxia 发件人: "Dan Hill" 收件人: "User" 发送时间: 星期三, 2022年 11 月 23日 下午 1:55:20 主题: Weird Flink SQ

Re: Weird Flink SQL error

2022-11-23 Thread Shuiqiang Chen
Hi Dan, Which Flink version do you apply? I write a test case base on the code snippet you provided and it works normally in Flink 1.17-SNAPSHOT. Best, Shuiqiang Dan Hill 于2022年11月23日周三 13:55写道: > Hi. I'm hitting an obfuscated Flink SQL parser error. Is there a way to > get better errors for

Weird Flink SQL error

2022-11-22 Thread Dan Hill
Hi. I'm hitting an obfuscated Flink SQL parser error. Is there a way to get better errors for Flink SQL? I'm hitting it when I wrap some of the fields on an inner Row. *Works* CREATE TEMPORARY VIEW `test_content_metrics_view` AS SELECT DATE_FORMAT(TUMBLE_ROWTIME(rowtime, INTERVAL '1' DAY)