You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Xingyu Liu (Jira)" <ji...@apache.org> on 2023/06/14 14:26:00 UTC

[jira] [Commented] (IOTDB-5962) The source series of the alias series is aligned , and it can be successfully inserted without specifying 'aligned'

    [ https://issues.apache.org/jira/browse/IOTDB-5962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17732561#comment-17732561 ] 

Xingyu Liu commented on IOTDB-5962:
-----------------------------------

Bug is fixed.

Relevant PR:

master https://github.com/apache/iotdb/pull/10155

1.2 https://github.com/apache/iotdb/pull/10156

> The source series of the alias series is aligned , and it can be successfully inserted without specifying 'aligned'
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: IOTDB-5962
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5962
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: mpp-cluster
>    Affects Versions: 1.2
>            Reporter: 刘珍
>            Assignee: Yukun Zhou
>            Priority: Major
>              Labels: view
>         Attachments: image-2023-06-01-10-57-58-421.png
>
>
> 测试版本:iotdb_master_0601_81f541d
> 问题描述:别名序列对应的时间序列是对齐的,insert into this alias series ,能成功。
> root.db.d_aligned.v1 视图来自对齐序列,root.db.d_aligned.v2 视图来自非对齐序列,insert into root.db.d_aligned(v1,v2) 不指定aligned 第一次报错(符合预期),第二次执行成功(不符合预期)。
> 测试用例:
> drop database root.db;
> create database root.db;
> create aligned timeseries root.db.d_aligned(s01 INT32 encoding=TS_2DIFF compressor=ZSTD ,s02 INT32 encoding=GORILLA compressor=GZIP );
> create view root.db.d_aligned(v1) as root.db.d_aligned(s01);
> insert into root.db.d_aligned(time,v1) values(1,100);
> create timeseries root.db.d_normal.speed with datatype=INT64;
> create view root.db.d_aligned(v2) as root.db.d_normal(speed);
> show view root.db.d_aligned.*;
> {color:#00875A}*//下面不指定aligned insert 报错,是正确的报错信息*{color}
> {color:#DE350B}*insert into root.db.d_aligned(time,v2,v1) values(1,200,100);*{color}
> insert into root.db.d_aligned(time,v2,v1)aligned values(1,200,100);
> {color:#DE350B}*//下面不指定aligned 再次insert 成功,应该报错。*{color}
> insert into root.db.d_aligned(time,v2,v1) values(1,200,100);
>  !image-2023-06-01-10-57-58-421.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)