-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
long_window bugs #3836
Labels
storage-engine
openmldb storage engine. nameserver & tablet
Comments
set @@execute_mode='online';
CREATE DATABASE db1;
-- SUCCEED
USE db1;
-- SUCCEED: Database changed
CREATE TABLE demo_table1(c1 string, c2 int, c3 bigint, c4 float, c5 double, c6 timestamp, c7 date);
-- SUCCEED: Create successfully
DEPLOY demo_deploy OPTIONS(long_windows="w1:1d") SELECT c1, sum(c2) OVER w1 FROM demo_table1
WINDOW w1 AS (PARTITION BY c1 ORDER BY c6 ROWS_RANGE BETWEEN 5d PRECEDING AND CURRENT ROW);
select * from __INTERNAL_DB.PRE_AGG_META_INFO;
use __PRE_AGG_DB;
show tables; Then use db1;
DROP DEPLOYMENT demo_deploy;
DROP TABLE demo_table1;
select * from __INTERNAL_DB.PRE_AGG_META_INFO;
-- empty
use __PRE_AGG_DB;
show tables;
-- empty Test on 0.8.0, the aggr table and aggr table entry in meta info table won't be deleted. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
meta table and aggr table deletion
workaround
detail
P.S. long window definition can be w1:100(int literal), but if window agg is xx_where, it can't
The text was updated successfully, but these errors were encountered: