diff --git a/integration_tests/cases/local/03_dml/issue-637.result b/integration_tests/cases/local/03_dml/issue-637.result index c2e44ddd47..f69e60eace 100644 --- a/integration_tests/cases/local/03_dml/issue-637.result +++ b/integration_tests/cases/local/03_dml/issue-637.result @@ -23,9 +23,43 @@ VALUES affected_rows: 1 -select * from `issue637`; +SELECT * FROM `issue637`; tsid,t,str_tag,int_tag,var_tag,str_field,int_field,bin_field, UInt64(15527369105987057363),Timestamp(1651737067000),String("t1"),Int32(1),Varbinary([118, 49]),String("s1"),Int32(1),String("b1"), +CREATE TABLE IF NOT EXISTS `issue637_1` +( + t timestamp NOT NULL, + double_filed double, + float_filed float, + str_field string, + var_field varbinary, + u64_field uint64, + u32_field uint32, + u16_field uint16, + u8_field uint8, + i64_field int64, + i32_field int32, + i16_field int16, + i8_field int8, + bool_field boolean, + TIMESTAMP KEY (t) +) ENGINE=Analytic with(enable_ttl = 'false'); + +affected_rows: 0 + +INSERT INTO issue637_1 + (`t`,`double_filed`,`float_filed`,`str_field`,`var_field`,`u64_field`,`u32_field`,`u16_field`,`u8_field`,`i64_field`,`i32_field`,`i16_field`,`i8_field`,`bool_field`) +VALUES + (1651737067000,100,100,"s","v",100,100,100,100,100,100,100,100,false); + +affected_rows: 1 + +SELECT * FROM `issue637_1`; + +tsid,t,double_filed,float_filed,str_field,var_field,u64_field,u32_field,u16_field,u8_field,i64_field,i32_field,i16_field,i8_field,bool_field, +UInt64(0),Timestamp(1651737067000),Double(100.0),Float(100.0),String("s"),Varbinary([118]),UInt64(100),UInt32(100),UInt16(100),UInt8(100),Int64(100),Int32(100),Int16(100),Int8(100),Boolean(false), + + diff --git a/integration_tests/cases/local/03_dml/issue-637.sql b/integration_tests/cases/local/03_dml/issue-637.sql index bf16a76937..642f7f4291 100644 --- a/integration_tests/cases/local/03_dml/issue-637.sql +++ b/integration_tests/cases/local/03_dml/issue-637.sql @@ -18,5 +18,31 @@ INSERT INTO issue637 VALUES ("t1",1,"v1","s1",1,"b1",1651737067000); -select * from `issue637`; +SELECT * FROM `issue637`; +-- Test all data types mentioned in our user document. +CREATE TABLE IF NOT EXISTS `issue637_1` +( + t timestamp NOT NULL, + double_filed double, + float_filed float, + str_field string, + var_field varbinary, + u64_field uint64, + u32_field uint32, + u16_field uint16, + u8_field uint8, + i64_field int64, + i32_field int32, + i16_field int16, + i8_field int8, + bool_field boolean, + TIMESTAMP KEY (t) +) ENGINE=Analytic with(enable_ttl = 'false'); + +INSERT INTO issue637_1 + (`t`,`double_filed`,`float_filed`,`str_field`,`var_field`,`u64_field`,`u32_field`,`u16_field`,`u8_field`,`i64_field`,`i32_field`,`i16_field`,`i8_field`,`bool_field`) +VALUES + (1651737067000,100,100,"s","v",100,100,100,100,100,100,100,100,false); + +SELECT * FROM `issue637_1`;