Skip to content

Fix mods file contains writable view#11034

Merged
JackieTien97 merged 4 commits intoapache:masterfrom
Cpaulyz:fix_delete_alias_data
Sep 5, 2023
Merged

Fix mods file contains writable view#11034
JackieTien97 merged 4 commits intoapache:masterfrom
Cpaulyz:fix_delete_alias_data

Conversation

@Cpaulyz
Copy link
Contributor

@Cpaulyz Cpaulyz commented Sep 4, 2023

Description

When analysing the delete data statement, the deletion of a writable view should be converted to an operation on the original timeseries.

For example:

insert into root.db.d1(time, s1) values(1,1);
flush;
create view root.db.d1.vs1 as select s1 from root.db.d1;
delete from root.db.d1.vs1 where time <= 1;

modfication file should not contain root.db.d1.vs1

@SzyWilliam
Copy link
Member

@Cpaulyz You did made a significant change to IoTDB. What a bravo PR!

@JackieTien97 JackieTien97 merged commit eb500c9 into apache:master Sep 5, 2023
@Cpaulyz Cpaulyz deleted the fix_delete_alias_data branch September 5, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants