blinkdb icon indicating copy to clipboard operation
blinkdb copied to clipboard

running example using "within xx seconds"

Open yang-cao opened this issue 9 years ago • 8 comments

When I run simple SQL queries like

Select approx_count(_) from table1 where A = 'xx' _within 0.1 seconds*

I run into an error: Parse Error: mismatched input 'within' expecting EOF near ''table1''

Does blinkdb support clauses like "within xx seconds" as shown in the paper as running examples?

yang-cao avatar Feb 17 '16 17:02 yang-cao

as i digging into source code , only simplewith operator is supported... This confuse me a lot.

wangchuan2008888 avatar May 04 '17 03:05 wangchuan2008888

@yang-cao ,I have also encountered the same problem with you I use BlinkDB CLI,and run simple SQL queries like: select count(1) from src within 1 seconds; I run into an error: **FAILED: Parse Error: line 1:25 Failed to recognize predicate 'within'. Failed rule: 'kwInner' in join type specifier ** Have you solved this problem?Thanks.

sunriseLe avatar May 05 '17 01:05 sunriseLe

@sunriseLe I donnot think there has that function. as deep in the source code ,only samplewith operator and approx_sum,approx_avg,approx_count implement.

wangchuan2008888 avatar May 05 '17 01:05 wangchuan2008888

@sunriseLe Yes, I agree with @wangchuan2008888 I guess such functions may not be supported by BlinkDB (but I didn't look into the code).

yang-cao avatar May 05 '17 01:05 yang-cao

So,why are the statements written in papers?

sunriseLe avatar May 05 '17 01:05 sunriseLe

I can only run statements such as samplewith operator and approx_sum,approx_avg,approx_count.I want to query with time and error bounds,but I failed! @yang-cao @wangchuan2008888

sunriseLe avatar May 05 '17 02:05 sunriseLe

Yeah, I think only samplewith, approx_sum, approx_avg, and approx_count are implemented. I could not find any more modification in the code.

qingzma avatar Sep 09 '18 08:09 qingzma

FYI, we are actively developing a related open-source AQP system at https://github.com/mozafari/verdictdb

Right now, our engine has the ability to progressively aggregate data (with possibly interactive visual updates), but please file an issue if you have some uses cases for "within XXX seconds".

Disclaimer: I am the main developer of this project.

pyongjoo avatar Sep 10 '18 16:09 pyongjoo