Skip to content
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

[TESTCASES]Add testcases about function, ddl, dml #1588

Merged
merged 7 commits into from Oct 18, 2023

Conversation

Benxiaohai001
Copy link
Member

@Benxiaohai001 Benxiaohai001 commented Oct 12, 2023

Required checklist

  • Sample config files updated (config,meta/config and default config)
  • If there are user-facing changes, the documentation needs to be updated prior to approving the PR( Link )
  • If there are any breaking changes to public APIs, please add the api change label.
  • Signed CLA (if not already signed)

Which issue does this PR close?

#1391 #1365 #1404 #569 #1475 #1458 #1573 #1456 #1404 #1457 #1358 #556 #555 #553 #1060
#1483 #649

Related #.

Rationale for this change

Add testcases about function delta, gauge_agg, rate and time_delta
//: # (Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.)

Are there any user-facing changes?

NO

Execution record

rename tag

cnosdb git:(main) ✗ ./target/release/sqllogicaltests rename_tag  
Options { filters: ["rename_tag"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/ddl/rename_tag.slt] Running query: "alter database public set ttl '1000000d';"
[/ddl/rename_tag.slt] Running query: "drop table if exists ddl_tbl;"
[/ddl/rename_tag.slt] Running query: "CREATE TABLE IF NOT EXISTS ddl_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/ddl/rename_tag.slt] Running query: "INSERT ddl_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/ddl/rename_tag.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_tag.slt] Running query: "alter table ddl_tbl rename column t0 to t0009;"
[/ddl/rename_tag.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_tag.slt] Running query: "select * from ddl_tbl order by time, t0009, t1, t2;"
[/ddl/rename_tag.slt] Running query: "alter table ddl_tbl rename column t1 to t0009;"
[/ddl/rename_tag.slt] Running query: "alter table ddl_tbl rename column t0009 to t0;"
[/ddl/rename_tag.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_tag.slt] Running query: "select * from ddl_tbl order by time, t0, t1, t2;"
[/ddl/rename_tag.slt] Running query: "alter table ddl_tbl rename column t0, t1 to t0_new000, t1_new_001;"
[/ddl/rename_tag.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_tag.slt] Running query: "alter table ddl_tbl rename column t0, f1 to t0_new000, f1_new_001;"
[/ddl/rename_tag.slt] Running query: "desc table ddl_tbl;"

rename field

➜  cnosdb git:(main) ✗ ./target/release/sqllogicaltests rename_field
Options { filters: ["rename_field"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/ddl/rename_field.slt] Running query: "alter database public set ttl '1000000d';"
[/ddl/rename_field.slt] Running query: "drop table if exists ddl_tbl;"
[/ddl/rename_field.slt] Running query: "CREATE TABLE IF NOT EXISTS ddl_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/ddl/rename_field.slt] Running query: "INSERT ddl_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/ddl/rename_field.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_field.slt] Running query: "alter table ddl_tbl rename column f0 to f0009;"
[/ddl/rename_field.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_field.slt] Running query: "select time, t0, t1, t2, f0009
from ddl_tbl order by time, t0, t1, t2;"
[/ddl/rename_field.slt] Running query: "alter table ddl_tbl rename column f1 to f0009;"
[/ddl/rename_field.slt] Running query: "alter table ddl_tbl rename column f0009 to f0;"
[/ddl/rename_field.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_field.slt] Running query: "select time, t0, t1, t2, f0
from ddl_tbl order by time, t0, t1, t2;"
[/ddl/rename_field.slt] Running query: "alter table ddl_tbl rename column time to time_001;"
[/ddl/rename_field.slt] Running query: "desc table ddl_tbl;"
[/ddl/rename_field.slt] Running query: "alter table ddl_tbl rename column f0, f1 to f0_new000, f1_new_001;"
[/ddl/rename_field.slt] Running query: "desc table ddl_tbl;"

update tag

 cnosdb git:(main) ✗ ./target/release/sqllogicaltests update_tag  
Options { filters: ["update_tag"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/dml/update_tag.slt] Running query: "alter database public set ttl '1000000d';"
[/dml/update_tag.slt] Running query: "drop table if exists dml_tbl;"
[/dml/update_tag.slt] Running query: "CREATE TABLE IF NOT EXISTS dml_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/dml/update_tag.slt] Running query: "drop table if exists dml_tb2;"
[/dml/update_tag.slt] Running query: "CREATE TABLE IF NOT EXISTS dml_tb2(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/dml/update_tag.slt] Running query: "INSERT dml_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', null, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/dml/update_tag.slt] Running query: "INSERT dml_tb2(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_tag.slt] Running query: "update dml_tbl set t0 = null, t1 = null where t0 = 'tag12';"
[/dml/update_tag.slt] Running query: "update dml_tbl set t0 = 'tag_new11', t1 = 'tag_new21' where t0 = 'tag11' and t1 = 'tag21';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_tag.slt] Running query: "update dml_tbl set t0 = null, t1 = 'tag_new21' where t0 = 'tag_new11';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_tag.slt] Running query: "update dml_tbl set t1 = 'xxxxx' where t0 = 'tag12' and t1 = 'tag22';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_tag.slt] Running query: "update dml_tbl set t2 = 'xxxxx' where t0 = 'tag12' and t1 = 'tag23';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_tag.slt] Running query: "update dml_tbl set t0 = t0 || 'xxx', t1 = 'tag_new21' where t0 = 'tag11';"
[/dml/update_tag.slt] Running query: "update dml_tbl set t0 = 'xxx', t1 = 'tag_new21' where t0 = 'tag11' and time < '1999-12-31T00:00:10.020';"
[/dml/update_tag.slt] Running query: "update dml_tbl set t0 = 'xxx', t1 = 'tag_new21' where t0 = 'tag11' and f1 = 222;"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where f0_bigint = -1;"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where time = '1999-12-31T00:00:00';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where t1 = 't109';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where t1 = 't109' and f0_bigint = 1;"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where t1 = 't109' and time = '1999-12-31T00:00:00';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where f0_bigint = 1 and time = '1999-12-31T00:00:00';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't000_new000' where f0_bigint = 1 and time = '1999-12-31T00:00:00' and t1 = 't108';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't001_new_t001' where t0 = 't001';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 't002_new_t002', t1 = 't107_new_107' where t2 = 't202' and t3 = 't305';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = -1  where t2 = 't203';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = true  where t2 = 't204';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 3.1415926  where t2 = 't205';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 3.1415926, f0_bigint = 123  where t2 = 't206';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 3.1415926, time = 123  where t2 = 't206';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 3.1415926, time = 123, f0_bigint = 123  where t2 = 't206';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_tag.slt] Running query: "update dml_tb2 set t0 = 50  where t2 = 't206';"
[/dml/update_tag.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"

update field

cnosdb git:(main) ✗ ./target/release/sqllogicaltests update_field
Options { filters: ["update_field"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/dml/update_field.slt] Running query: "alter database public set ttl '1000000d';"
[/dml/update_field.slt] Running query: "drop table if exists dml_tbl;"
[/dml/update_field.slt] Running query: "CREATE TABLE IF NOT EXISTS dml_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/dml/update_field.slt] Running query: "drop table if exists dml_tb2;"
[/dml/update_field.slt] Running query: "CREATE TABLE IF NOT EXISTS dml_tb2(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/dml/update_field.slt] Running query: "INSERT dml_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', null, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/dml/update_field.slt] Running query: "INSERT dml_tb2(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "update dml_tbl set f0 = 333 where t0 = 'tag12' and t1 = 'tag23';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "update dml_tbl set f1 = 999 where t0 = 'tag14' and time < '1999-12-31T00:00:10.020';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "update dml_tbl set f1 = length(t0) + 1 where t0 = 'tag14' and time < '1999-12-31T00:00:10.020';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "update dml_tbl set f0 = 111, f1 = length(t0) + 2 where t0 = 'tag14' and time < '1999-12-31T00:00:10.020';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "update dml_tbl set f0 = 111, f1 = length(t0) + 3 where t0 = 'tag14' and t1 = 'tag24';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "update dml_tbl set f1 = null where t0 = 'tag14' and time < '1999-12-31T00:00:10.020';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, f0, f1
from dml_tbl order by time, t0, t1, t2;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f0_bigint = -41 where t0 = 't007';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint from dml_tb2 order by time, t0, t1, t2, t3, f1_bigint_unsign;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f1_bigint_unsign from dml_tb2 order by time, t0, t1, t2, t3, f1_bigint_unsign;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f1_bigint_unsign = -3 where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f1_bigint_unsign from dml_tb2 order by time, t0, t1, t2, t3, f1_bigint_unsign;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f1_bigint_unsign = 3 where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f1_bigint_unsign from dml_tb2 order by time, t0, t1, t2, t3, f1_bigint_unsign;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 0 where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 1 where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = FALSE where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = T where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 3 where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 'False' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f2_boolean;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f3_string from dml_tb2 order by time, t0, t1, t2, t3, f3_string;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f3_string = 'string000modifyfirst' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f3_string from dml_tb2 order by time, t0, t1, t2, t3, f3_string;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f4_double from dml_tb2 order by time, t0, t1, t2, t3, f4_double;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f4_double = 5.20 where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f4_double from dml_tb2 order by time, t0, t1, t2, t3, f4_double;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc0_point from dml_tb2 order by time, t0, t1, t2, t3, loc0_point;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc0_point = 'POINT(3 2)' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc0_point from dml_tb2 order by time, t0, t1, t2, t3, loc0_point;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc1_LINESTRING from dml_tb2 order by time, t0, t1, t2, t3, loc1_LINESTRING;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc1_LINESTRING = 'LINESTRING (31 11, 11 31, 41 41)' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc1_LINESTRING from dml_tb2 order by time, t0, t1, t2, t3, loc1_LINESTRING;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc2_POLYGON from dml_tb2 order by time, t0, t1, t2, t3, loc2_POLYGON;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc2_polygon = 'POLYGON ((302 102, 40 40, 20 40, 10 22, 23 12))' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc2_POLYGON from dml_tb2 order by time, t0, t1, t2, t3, loc2_POLYGON;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc3_MULTIPOINT from dml_tb2 order by time, t0, t1, t2, t3, loc3_MULTIPOINT;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc3_MULTIPOINT = 'MULTIPOINT ((10 4), (4 3), (2 2), (3 1))' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc3_MULTIPOINT from dml_tb2 order by time, t0, t1, t2, t3, loc3_MULTIPOINT;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc4_MULTILINESTRING from dml_tb2 order by time, t0, t1, t2, t3, loc4_MULTILINESTRING;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc4_MULTILINESTRING = 'MULTILINESTRING ((101 101, 201 201, 1 4),(44 4, 3 3, 4 2, 3 1))' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc4_MULTILINESTRING from dml_tb2 order by time, t0, t1, t2, t3, loc4_MULTILINESTRING;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc5_MULTIPOLYGON from dml_tb2 order by time, t0, t1, t2, t3, loc5_MULTIPOLYGON;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc5_MULTIPOLYGON = 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc5_MULTIPOLYGON from dml_tb2 order by time, t0, t1, t2, t3, loc5_MULTIPOLYGON;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc6_GEOMETRYCOLLECTION from dml_tb2 order by time, t0, t1, t2, t3, loc6_GEOMETRYCOLLECTION;"
[/dml/update_field.slt] Running query: "update dml_tb2 set loc6_GEOMETRYCOLLECTION = 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, loc6_GEOMETRYCOLLECTION from dml_tb2 order by time, t0, t1, t2, t3, loc6_GEOMETRYCOLLECTION;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f0_bigint = 10, f2_boolean = 'true' where t0 = 't000';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 'true';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 'true' where true; "
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = 'FALSE' where time = '1999-12-31T00:00:00';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = true where f0_bigint = 10;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set f2_boolean = false where f2_boolean = true ;"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "UPDATE dml_tb2 SET f2_boolean = true WHERE f2_boolean = false and t0 = 't000' and time = '1999-12-31T00:00:00';"
[/dml/update_field.slt] Running query: "select time, t0, t1, t2, t3, f0_bigint, f2_boolean from dml_tb2 order by time, t0, t1, t2, t3, f0_bigint, f2_boolean;"
[/dml/update_field.slt] Running query: "update dml_tb2 set time = '1999-12-21T00:00:00' where f2_boolean = true;"

MODE

cnosdb git:(main) ✗ ./target/release/sqllogicaltests mode 
Options { filters: ["mode"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/mode.slt] Running query: "alter database public set ttl '1000000d';"
[/function/mode.slt] Running query: "drop table if exists func_tbl;"
[/function/mode.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/mode.slt] Running query: "drop table if exists func_tb2;"
[/function/mode.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/mode.slt] Running query: "drop table if exists func_tb3;"
[/function/mode.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb3(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/mode.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/mode.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/mode.slt] Running query: "INSERT func_tb3(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/mode.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 01:10:00.025', 111, null, 'tag11', 'tag22'),
    ('1999-12-31 01:10:00.030', 333, null, 'tag12', 'tag23'),
    ('1999-12-31 01:10:00.031', 555, 555, 'tag14', 'tag23'),
    ('1999-12-31 02:00:00.035', null, 555, 'tag14', 'tag24');"
[/function/mode.slt] Running query: "select * from func_tbl order by time;"
[/function/mode.slt] Running query: "select mode(f1) from func_tbl;"
[/function/mode.slt] Running query: "select mode(f0) from func_tbl;"
[/function/mode.slt] Running query: "select mode(f0) from func_tbl group by t0 order by t0;"
[/function/mode.slt] Running query: "select mode(null);"
[/function/mode.slt] Running query: "select mode(*) from func_tb3;"
[/function/mode.slt] Running query: "select mode(time) from func_tb3 where time in ('1999-12-31T00:00:00.045');"
[/function/mode.slt] Running query: "select mode();"
[/function/mode.slt] Running query: "select mode(f0_bigint) from func_tb3 where f0_bigint in (1);"
[/function/mode.slt] Running query: "select mode(f1_bigint_unsign) from func_tb3 where f1_bigint_unsign in (1);"
[/function/mode.slt] Running query: "select mode(f2_boolean) from func_tb3 where f2_boolean in (true);"
[/function/mode.slt] Running query: "select mode(f3_string) from func_tb3 where f3_string in ('string000');"
[/function/mode.slt] Running query: "select mode(f4_double) from func_tb3 where f4_double in (3.1415926);"
[/function/mode.slt] Running query: "select mode(loc0_point) from func_tb3 where loc0_point in ('POINT(4 0)');"
[/function/mode.slt] Running query: "select mode(loc1_LINESTRING) from func_tb3 where loc1_LINESTRING in ('LINESTRING (30 13, 10 32, 41 44)');"
[/function/mode.slt] Running query: "select mode(loc2_POLYGON) from func_tb3 where loc2_POLYGON in ('POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))');"
[/function/mode.slt] Running query: "select mode(loc3_MULTIPOINT) from func_tb3 where loc3_MULTIPOINT in ('MULTIPOINT ((10 40), (40 630), (20 20), (30 10))');"
[/function/mode.slt] Running query: "select mode(loc4_MULTILINESTRING) from func_tb3 where loc4_MULTILINESTRING in ('MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))');"
[/function/mode.slt] Running query: "select mode(loc5_MULTIPOLYGON) from func_tb3 where  loc5_MULTIPOLYGON in ('MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))');"
[/function/mode.slt] Running query: "select mode(loc6_GEOMETRYCOLLECTION) from func_tb3 where loc6_GEOMETRYCOLLECTION in ('GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))');"
[/function/mode.slt] Running query: "select modes(f0_bigint) from func_tb3 where f0_bigint in (1);"
[/function/mode.slt] Running query: "select mode(f0_bigint, f0_bigint) from func_tb3;"

first

cnosdb git:(main) ✗ ./target/release/sqllogicaltests first 
Options { filters: ["first"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/first.slt] Running query: "alter database public set ttl '1000000d';"
[/function/first.slt] Running query: "drop table if exists func_tbl;"
[/function/first.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/first.slt] Running query: "drop table if exists func_tb2;"
[/function/first.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/first.slt] Running query: "drop table if exists func_tb3;"
[/function/first.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb3(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/first.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/first.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/first.slt] Running query: "INSERT func_tb3(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/first.slt] Running query: "select first(time, f1) from func_tbl;"
[/function/first.slt] Running query: "select first(time, f0) from func_tbl;"
[/function/first.slt] Running query: "select first(time, f0), t0 from func_tbl group by t0 order by t0;"
[/function/first.slt] Running query: "select first(time) from func_tbl;"
[/function/first.slt] Running query: "select first() from func_tbl;"
[/function/first.slt] Running query: "select first(f0, f1) from func_tbl;"
[/function/first.slt] Running query: "select first(time, f0_bigint, f1_bigint_unsign) from func_tb3;"
[/function/first.slt] Running query: "select first(f1_bigint_unsign) from func_tb3;"
[/function/first.slt] Running query: "select firsts(time, f0_bigint) from func_tb3;"
[/function/first.slt] Running query: "select first(time, f1_bigint_unsign) from func_tb3;"
[/function/first.slt] Running query: "select first(time, f2_boolean) from func_tb3;"
[/function/first.slt] Running query: "select first(time, f4_double) from func_tb3;"
[/function/first.slt] Running query: "select first(time, f3_string) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc0_point) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc1_LINESTRING) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc2_POLYGON) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc3_MULTIPOINT) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc4_MULTILINESTRING) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc5_MULTIPOLYGON) from func_tb3;"
[/function/first.slt] Running query: "select first(time, loc6_GEOMETRYCOLLECTION) from func_tb3;"
[/function/first.slt] Running query: "select first(time, t0) from func_tb3;"
[/function/first.slt] Running query: "select first(time, t000) from func_tb3;"

LAST

cnosdb git:(main) ✗ ./target/release/sqllogicaltests last             
Options { filters: ["last"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/data_tests/get_last_data.slt] Running query: "drop table if exists get_last_data;"
[/data_tests/get_last_data.slt] Running query: "CREATE TABLE get_last_data(f1 BIGINT, f2 BIGINT UNSIGNED, f3 DOUBLE, f4 BOOLEAN, TAGS(t1, t2, t3));"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:00', 't11', 't12', 't13', -1, 1, 0.1, true);"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:05', 't11', 't12', 't13', -2, 2, 0.2, false);"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:10', 't11', 't12', 't13', -3, 3, 0.3, false);"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:15', 't11', 't12', 't13', -4, 4, 0.4, true);"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:20', 't11', 't12', 't13', -5, 5, 0.5, false);"
[/data_tests/get_last_data.slt] Running query: "SELECT * FROM get_last_data ORDER BY time DESC LIMIT 1;"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:25', 't11', 't12', 't13', -7, 7, 0.7, true);"
[/data_tests/get_last_data.slt] Running query: "INSERT INTO get_last_data(time, t1, t2, t3, f1, f2, f3, f4) VALUES('2023-05-01 00:00:30', 't11', 't12', 't13', -8, 8, 0.8, false);"
[/data_tests/get_last_data.slt] Running query: "SELECT * FROM get_last_data ORDER BY time DESC LIMIT 1;"
[/data_tests/get_last_data.slt] Running query: "drop database if exists get_last_data;"
[/function/last.slt] Running query: "alter database public set ttl '1000000d';"
[/function/last.slt] Running query: "drop table if exists func_tbl;"
[/function/last.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/last.slt] Running query: "drop table if exists func_tb2;"
[/function/last.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/last.slt] Running query: "drop table if exists func_tb3;"
[/function/last.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb3(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/last.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/last.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/last.slt] Running query: "INSERT func_tb3(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/last.slt] Running query: "select time, t0, t1, t2, f0, f1 from func_tbl order by time, t0, t1;"
[/function/last.slt] Running query: "select last(time, f1) from func_tbl;"
[/function/last.slt] Running query: "select last(time, f0) from func_tbl;"
[/function/last.slt] Running query: "select last(time, f0), t0 from func_tbl group by t0 order by t0;"
[/function/last.slt] Running query: "select last(time) from func_tbl;"
[/function/last.slt] Running query: "select last() from func_tbl;"
[/function/last.slt] Running query: "select last(f0, f1) from func_tbl;"
[/function/last.slt] Running query: "select last(time, f0_bigint, f1_bigint_unsign) from func_tb3;"
[/function/last.slt] Running query: "select last(f1_bigint_unsign) from func_tb3;"
[/function/last.slt] Running query: "select lasts(time, f0_bigint) from func_tb3;"
[/function/last.slt] Running query: "select last(time, f1_bigint_unsign) from func_tb3;"
[/function/last.slt] Running query: "select last(time, f2_boolean) from func_tb3;"
[/function/last.slt] Running query: "select last(time, f4_double) from func_tb3;"
[/function/last.slt] Running query: "select last(time, f3_string) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc0_point) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc1_LINESTRING) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc2_POLYGON) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc3_MULTIPOINT) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc4_MULTILINESTRING) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc5_MULTIPOLYGON) from func_tb3;"
[/function/last.slt] Running query: "select last(time, loc6_GEOMETRYCOLLECTION) from func_tb3;"
[/function/last.slt] Running query: "select last(time, t0) from func_tb3;"
[/function/last.slt] Running query: "select last(time, t000) from func_tb3;"

compact_state_agg

cnosdb git:(main) ✗ ./target/release/sqllogicaltests compact_state_agg
Options { filters: ["compact_state_agg"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/state_agg/compact_state_agg.slt] Running query: "alter database public set ttl '1000000d';"
[/function/state_agg/compact_state_agg.slt] Running query: "drop table if exists func_tbl;"
[/function/state_agg/compact_state_agg.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/state_agg/compact_state_agg.slt] Running query: "drop table if exists func_tb2;"
[/function/state_agg/compact_state_agg.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/state_agg/compact_state_agg.slt] Running query: "drop table if exists func_tb3;"
[/function/state_agg/compact_state_agg.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb3(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/state_agg/compact_state_agg.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/state_agg/compact_state_agg.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/state_agg/compact_state_agg.slt] Running query: "INSERT func_tb3(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, f1) as state from func_tbl)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "select compact_state_agg(time, time, time) as state from func_tbl;"
[/function/state_agg/compact_state_agg.slt] Running query: "select compact_state_agg(time) as state from func_tbl;"
[/function/state_agg/compact_state_agg.slt] Running query: "select compact_state_agg() as state from func_tbl;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, f1) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, f0) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, f2) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, f3) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, f4) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, t0) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, 1) as state from func_tb2)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc0_point) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc1_LINESTRING) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc2_POLYGON) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc3_MULTIPOINT) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc4_MULTILINESTRING) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc5_MULTIPOLYGON) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, loc6_GEOMETRYCOLLECTION) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_agg(time, time) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_aggs(time, loc1_LINESTRING) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp;"
[/function/state_agg/compact_state_agg.slt] Running query: "with tmp as (select compact_state_aggs(t0, loc1_LINESTRING) as state from gis_loc_all)
select state.state_duration, state.state_periods from tmp ;"

st_area

➜  cnosdb git:(main) ✗ ./target/release/sqllogicaltests st_area    
Options { filters: ["st_area"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gis/st_area.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gis/st_area.slt] Running query: "drop table if exists gis_loc;"
[/function/gis/st_area.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc(loc geometry(point, 0));"
[/function/gis/st_area.slt] Running query: "drop table if exists gis_loc_all;"
[/function/gis/st_area.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc_all(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/gis/st_area.slt] Running query: "INSERT gis_loc(TIME, loc)
VALUES
    ('1999-12-31 00:00:00.000', 'POINT(0 0)'),
    ('1999-12-31 00:00:00.005', 'POINT(0 1)'),
    ('1999-12-31 00:00:00.010', 'POINT(0 2)'),
    ('1999-12-31 00:00:10.015', 'POINT(0 3)'),
    ('1999-12-31 00:00:10.020', 'POINT(0 4)'),
    ('1999-12-31 00:10:00.025', 'POINT(0 5)'),
    ('1999-12-31 00:10:00.030', 'POINT(0 6)'),
    ('1999-12-31 01:00:00.035', 'POINT(0 7)');"
[/function/gis/st_area.slt] Running query: "INSERT gis_loc_all(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_area.slt] Running query: "select ST_Area(geom) sqft, ST_Area(geom) * pow(0.3048, 2) sqm
from (
         select 'POLYGON((743238 2967416,743238 2967450,
                                 743265 2967450,743265.625 2967416,743238 2967416))'geom
     ) subquery;"
[/function/gis/st_area.slt] Running query: "-- Area of an empty polygon
select 'emptyPolyArea', st_area('POLYGON EMPTY');"
[/function/gis/st_area.slt] Running query: "-- Area of an empty linestring
select 'emptyLineArea', st_area('LINESTRING EMPTY');"
[/function/gis/st_area.slt] Running query: "-- Area of an empty point
select 'emptyPointArea', st_area('POINT EMPTY');"
[/function/gis/st_area.slt] Running query: "-- Area of an empty multipolygon
select 'emptyMultiPolyArea', st_area('MULTIPOLYGON EMPTY');"
[/function/gis/st_area.slt] Running query: "-- Area of an empty multilinestring
select 'emptyMultiLineArea', st_area('MULTILINESTRING EMPTY');"
[/function/gis/st_area.slt] Running query: "-- Area of an empty multilipoint
select 'emptyMultiPointArea', st_area('MULTIPOINT EMPTY');"
[/function/gis/st_area.slt] Running query: "-- Area of an empty collection
select 'emptyCollectionArea', st_area('GEOMETRYCOLLECTION EMPTY');"
[/function/gis/st_area.slt] Running query: "select st_area('POLYGON((0 0,0 1,1 1,1 0,0 0))');"
[/function/gis/st_area.slt] Running query: "select st_area();"
[/function/gis/st_area.slt] Running query: "select st_area(f0_bigint) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(f1_bigint_unsign) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(f2_boolean) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(f3_string) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(f4_double) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc0_point) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc1_LINESTRING) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc2_POLYGON) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc3_MULTIPOINT) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc4_MULTILINESTRING) from gis_loc_all  order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc5_MULTIPOLYGON) from gis_loc_all  order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc6_GEOMETRYCOLLECTION) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(t0) from gis_loc_all;"
[/function/gis/st_area.slt] Running query: "select st_area(TIME) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area(loc2_POLYGON, loc2_POLYGON) from gis_loc_all order by time;"
[/function/gis/st_area.slt] Running query: "select st_area('GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)),POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102)))');"

st_distance

➜  cnosdb git:(main) ✗ ./target/release/sqllogicaltests st_distance   
Options { filters: ["st_distance"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gis/st_distance.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gis/st_distance.slt] Running query: "drop table if exists gis_loc;"
[/function/gis/st_distance.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc(loc geometry(point, 0));"
[/function/gis/st_distance.slt] Running query: "drop table if exists gis_loc_all;"
[/function/gis/st_distance.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc_all(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/gis/st_distance.slt] Running query: "INSERT gis_loc(TIME, loc)
VALUES
    ('1999-12-31 00:00:00.000', 'POINT(0 0)'),
    ('1999-12-31 00:00:00.005', 'POINT(0 1)'),
    ('1999-12-31 00:00:00.010', 'POINT(0 2)'),
    ('1999-12-31 00:00:10.015', 'POINT(0 3)'),
    ('1999-12-31 00:00:10.020', 'POINT(0 4)'),
    ('1999-12-31 00:10:00.025', 'POINT(0 5)'),
    ('1999-12-31 00:10:00.030', 'POINT(0 6)'),
    ('1999-12-31 01:00:00.035', 'POINT(0 7)');"
[/function/gis/st_distance.slt] Running query: "INSERT gis_loc_all(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "SELECT time, loc, st_distance('POINT(0 0)', loc) FROM gis_loc order by time, loc;"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'POINT(0 0)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'LINESTRING (30 10, 10 30, 40 40)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'POLYGON ((35 10, 45 45, 15 40, 10 20, 35 10),(20 30, 35 35, 30 20, 20 30))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'MULTIPOINT (10 40, 40 30, 20 20, 30 10)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'LINESTRING (30 10, 10 30, 40 40)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'POLYGON ((35 10, 45 45, 15 40, 10 20, 35 10),(20 30, 35 35, 30 20, 20 30))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'MULTIPOINT (10 40, 40 30, 20 20, 30 10)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('LINESTRING (30 10, 10 30, 40 40)', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'POLYGON ((35 10, 45 45, 15 40, 10 20, 35 10),(20 30, 35 35, 30 20, 20 30))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'MULTIPOINT (10 40, 40 30, 20 20, 30 10)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 'MULTIPOINT (10 40, 40 30, 20 20, 30 10)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))', 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance('GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))', 'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_distance.slt] Running query: "select st_distance();"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)', 'POINT(0 0)', 'POINT(0 0)');"
[/function/gis/st_distance.slt] Running query: "select st_distance('POINT(0 0)');"
[/function/gis/st_distance.slt] Running query: "select st_distance(,'POINT(0 0)');"

st_geomfromwkb

cnosdb git:(main) ✗ ./target/release/sqllogicaltests st_geomfromwkb              
Options { filters: ["st_geomfromwkb"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gis/st_geomfromwkb.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gis/st_geomfromwkb.slt] Running query: "drop table if exists gis_loc;"
[/function/gis/st_geomfromwkb.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc(loc geometry(point, 0));"
[/function/gis/st_geomfromwkb.slt] Running query: "drop table if exists gis_loc_all;"
[/function/gis/st_geomfromwkb.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc_all(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/gis/st_geomfromwkb.slt] Running query: "INSERT gis_loc(TIME, loc)
VALUES
    ('1999-12-31 00:00:00.000', 'POINT(0 0)'),
    ('1999-12-31 00:00:00.005', 'POINT(0 1)'),
    ('1999-12-31 00:00:00.010', 'POINT(0 2)'),
    ('1999-12-31 00:00:10.015', 'POINT(0 3)'),
    ('1999-12-31 00:00:10.020', 'POINT(0 4)'),
    ('1999-12-31 00:10:00.025', 'POINT(0 5)'),
    ('1999-12-31 00:10:00.030', 'POINT(0 6)'),
    ('1999-12-31 01:00:00.035', 'POINT(0 7)');"
[/function/gis/st_geomfromwkb.slt] Running query: "INSERT gis_loc_all(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary('POINT(0 0)'));"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary('MULTIPOINT (10 40, 40 30, 20 20, 30 10)'));"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary('MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))'));"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary('MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))'));"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB('invalid');"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB();"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB() from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(time) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(t0) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(t1) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(t2) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(f0_bigint) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(f1_bigint_unsign) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(f2_boolean) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(f3_string) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(f4_double) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc0_point) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc1_LINESTRING) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc2_POLYGON) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc3_MULTIPOINT) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc4_MULTILINESTRING) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc5_MULTIPOLYGON) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(loc6_GEOMETRYCOLLECTION) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc0_point)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc1_LINESTRING)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc2_POLYGON)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc3_MULTIPOINT)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc4_MULTILINESTRING)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc5_MULTIPOLYGON)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc6_GEOMETRYCOLLECTION)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(loc0_point), st_AsBinary(loc0_point)) from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB("010100000000000000000000000000000000000000") from gis_loc_all order by time;"
[/function/gis/st_geomfromwkb.slt] Running query: "select ST_GeomFromWKB(st_AsBinary(f0_bigint)) from gis_loc_all order by time;"

st_asbinary

 cnosdb git:(main) ✗ ./target/release/sqllogicaltests st_asbinary
Options { filters: ["st_asbinary"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gis/st_asbinary.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gis/st_asbinary.slt] Running query: "drop table if exists gis_loc;"
[/function/gis/st_asbinary.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc(loc geometry(point, 0));"
[/function/gis/st_asbinary.slt] Running query: "drop table if exists gis_loc_all;"
[/function/gis/st_asbinary.slt] Running query: "CREATE TABLE IF NOT EXISTS gis_loc_all(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/gis/st_asbinary.slt] Running query: "INSERT gis_loc(TIME, loc)
VALUES
    ('1999-12-31 00:00:00.000', 'POINT(0 0)'),
    ('1999-12-31 00:00:00.005', 'POINT(0 1)'),
    ('1999-12-31 00:00:00.010', 'POINT(0 2)'),
    ('1999-12-31 00:00:10.015', 'POINT(0 3)'),
    ('1999-12-31 00:00:10.020', 'POINT(0 4)'),
    ('1999-12-31 00:10:00.025', 'POINT(0 5)'),
    ('1999-12-31 00:10:00.030', 'POINT(0 6)'),
    ('1999-12-31 01:00:00.035', 'POINT(0 7)');"
[/function/gis/st_asbinary.slt] Running query: "INSERT gis_loc_all(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/gis/st_asbinary.slt] Running query: "SELECT time, loc, st_AsBinary(loc) FROM gis_loc order by time, loc;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(null);"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary('POINT(0 0)');"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary('POINT(0, 0)');"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary('POINT(0, 0)', null);"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary();"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc0_point) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc1_LINESTRING) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc2_POLYGON) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc3_MULTIPOINT) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc4_MULTILINESTRING) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc5_MULTIPOLYGON) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc6_GEOMETRYCOLLECTION) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(f0_bigint) from gis_loc_all order by time; "
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(f1_bigint_unsign) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(f2_boolean) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(loc1_LINESTRING) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(f3_string) from gis_loc_all order by time;"
[/function/gis/st_asbinary.slt] Running query: "select st_AsBinary(f4_double) from gis_loc_all order by time;"

increase

cnosdb git:(main) ✗ ./target/release/sqllogicaltests increase
Options { filters: ["increase"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/increase.slt] Running query: "alter database public set ttl '1000000d';"
[/function/increase.slt] Running query: "drop table if exists func_tbl;"
[/function/increase.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/increase.slt] Running query: "drop table if exists func_tb2;"
[/function/increase.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/increase.slt] Running query: "drop table if exists func_tb3;"
[/function/increase.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb3(f0_bigint bigint, f1_bigint_unsign bigint unsigned, f2_boolean BOOLEAN, f3_string STRING, f4_double DOUBLE, loc0_point geometry(point, 0), loc1_LINESTRING geometry(LINESTRING, 0), loc2_POLYGON geometry(POLYGON, 0), loc3_MULTIPOINT geometry(MULTIPOINT, 0), loc4_MULTILINESTRING geometry(MULTILINESTRING, 0), loc5_MULTIPOLYGON geometry(MULTIPOLYGON, 0), loc6_GEOMETRYCOLLECTION geometry(GEOMETRYCOLLECTION, 0), tags(t0, t1, t2, t3));"
[/function/increase.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/increase.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/increase.slt] Running query: "INSERT func_tb3(TIME, t0, t1, t2, t3, f0_bigint, f1_bigint_unsign, f2_boolean, f3_string, f4_double, loc0_point, loc1_LINESTRING, loc2_POLYGON, loc3_MULTIPOINT, loc4_MULTILINESTRING, loc5_MULTIPOLYGON, loc6_GEOMETRYCOLLECTION)
VALUES
    ('1999-12-31 00:00:00.000', 't000', 't109', 't200', 't300', -1, 1, true, 'string000', 3.1415926, 
    'POINT(0 0)', 
    'LINESTRING (301 101, 101 301, 401 401)', 
    'POLYGON ((302 102, 402 402, 202 402, 102 220, 230 120))', 
    'MULTIPOINT ((102 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 340 20)),((15 5, 40 10, 10 20, 5 10, 15 52)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 130, 40 40)))'),
    ('1999-12-31 00:00:00.005', 't001', 't108', 't201', 't304', 1, 1, false, 'string0sss00', 3.1415926, 
    'POINT(0 1)', 
    'LINESTRING (303 103, 103 303, 403 403)', 
    'POLYGON ((130 120, 430 404, 2035 406, 108 290, 380 130))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(440 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 240 40)))'),
    ('1999-12-31 00:00:00.010', 't002', 't107', 't202', 't305', -9, 1, true, 'string000', 3.1415643926, 
    'POINT(1 0)', 
    'LINESTRING (302 101, 102 302, 44 45)', 
    'POLYGON ((304 101, 401 401, 201 401, 101 201, 301 101))', 
    'MULTIPOINT ((10 40), (40 30), (20 203), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 440),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 2)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 1, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 4)))'),
    ('1999-12-31 00:00:00.015', 't003', 't106', 't203', 't300', 155, 1, true, 'string000', 3.12415926, 
    'POINT(4 0)', 
    'LINESTRING (301 30, 50 34, 42 45)', 
    'POLYGON ((306 130, 440 402, 205 403, 150 202, 3045 102))', 
    'MULTIPOINT ((10 40), (40 350), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 4 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (17 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.020', 't004', 't105', 't204', 't300', 1, 1, true, 'string000', 3.1415926, 
    'POINT(1 3)', 
    'LINESTRING (35 18, 19 34, 30 420)', 
    'POLYGON ((230 210, 410 420, 210 420, 120 220, 302 102))', 
    'MULTIPOINT ((10 40), (40 630), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 140 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 0 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 0, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.025', 't005', 't104', 't205', 't306', 132, 1, false, 'string00eere0', 3.1413235926, 
    'POINT(5 6)', 
    'LINESTRING (33 12, 12 36, 60 30)', 
    'POLYGON ((320 130, 404 406, 203 402, 130 240, 310 105))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 410))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 35, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 10 450),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.030', 't006', 't103', 't206', 't300', 321, 1, true, 'string000', 3.1415926, 
    'POINT(10 0)', 
    'LINESTRING (34 30, 70 60, 45 70)', 
    'POLYGON ((302 103, 420 404,520 140, 410 220, 330 102))', 
    'MULTIPOINT ((10 40), (40 30), (120 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 430, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 10, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (402 10),LINESTRING (10 10, 20 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.035', 't009', 't100', 't200', 't300', 165, 1, true, 'strinsdffreg000', 3.145415926, 
    'POINT(0 20)', 
    'LINESTRING (30 13, 10 32, 41 44)', 
    'POLYGON ((330 1450, 460 430, 202 402, 130 240, 302 103))', 
    'MULTIPOINT ((10 40), (40 30), (220 20), (30 10))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 440 20, 30 10))', 
    'MULTIPOLYGON (((30 24, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 20 20, 150 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.040', 't007', 't101', 't200', 't306', 41, 1, false, 'string000', 3.1415926, 
    'POINT(111 342)', 
    'LINESTRING (31 20, 13 36, 50 10)', 
    'POLYGON ((302 130, 430 440, 420 450, 150 2560, 3067 10))', 
    'MULTIPOINT ((10 40), (440 30), (20 20), (30 10))', 
    'MULTILINESTRING ((10 10, 240 20, 10 40),(40 40, 30 30, 40 20, 30 10))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 26)),((15 5, 40 10, 10 20, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 130),LINESTRING (10 10, 220 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))'),
    ('1999-12-31 00:00:00.045', 't008', 't102', 't200', 't309', 451, 10, true, 'string6434300', 34.1415926, 
    'POINT(34 22)', 
    'LINESTRING (30 10, 10 30, 40 40)', 
    'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))', 
    'MULTIPOINT ((10 40), (40 30), (20 20), (30 140))', 
    'MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 140))', 
    'MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 240, 5 10, 15 5)))', 
    'GEOMETRYCOLLECTION (POINT (40 10),LINESTRING (10 10, 230 20, 10 40),POLYGON ((40 40, 20 45, 45 30, 40 40)))');"
[/function/increase.slt] Running query: "create database if not exists test_increase;"
[/function/increase.slt] Running query: "alter database test_increase set ttl '100000d';"
[/function/increase.slt] Running query: "CREATE TABLE IF NOT EXISTS test_increase.test_increase(f0 BIGINT, tags(t0));"
[/function/increase.slt] Running query: "INSERT INTO test_increase.test_increase(TIME, t0, f0)
VALUES
    ('1999-12-31 00:00:00.000', 'a', 1),
    ('1999-12-31 00:00:00.005', 'a', 2),
    ('1999-12-31 00:00:00.010', 'a', 3),
    ('1999-12-31 00:00:00.015', 'a', 4),
    ('1999-12-31 00:00:00.020', 'a', 5),
    ('1999-12-31 00:00:00.025', 'a', 6),
    ('1999-12-31 00:00:00.030', 'a', 7),
    ('1999-12-31 00:00:00.035', 'a', 8);"
[/function/increase.slt] Running query: "INSERT INTO test_increase.test_increase(TIME, t0, f0)
VALUES
    ('1999-12-31 00:00:00.000', 'b', 1),
    ('1999-12-31 00:00:00.005', 'b', 2),
    ('1999-12-31 00:00:00.010', 'b', 3),
    ('1999-12-31 00:00:00.015', 'b', 4),
    ('1999-12-31 00:00:00.020', 'b', 1),
    ('1999-12-31 00:00:00.025', 'b', 2),
    ('1999-12-31 00:00:00.030', 'b', 3),
    ('1999-12-31 00:00:00.035', 'b', 4);"
[/function/increase.slt] Running query: "select t0, increase(time, f0 order by time) as increase
from test_increase.test_increase group by t0 order by t0, increase;"
[/function/increase.slt] Running query: "drop database test_increase;"
[/function/increase.slt] Running query: "select increase(time, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(time, f1 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(time, f2 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(time, f3 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(time, f4 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(, f0) from func_tb2;"
[/function/increase.slt] Running query: "select increase() from func_tb2;"
[/function/increase.slt] Running query: "select increase(time, f0, f1 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increases(time, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(time, time order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(t0, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(f0, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(f1, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(f2, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(f3, f0 order by time) from func_tb2;"
[/function/increase.slt] Running query: "select increase(f4, f0 order by time) from func_tb2;"

time_delta

./target/debug/sqllogicaltests time_delta
Options { filters: ["time_delta"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gauge/time_delta.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gauge/time_delta.slt] Running query: "drop table if exists func_tbl;"
[/function/gauge/time_delta.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/gauge/time_delta.slt] Running query: "drop table if exists func_tb2;"
[/function/gauge/time_delta.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/gauge/time_delta.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/gauge/time_delta.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/gauge/time_delta.slt] Running query: "select time,t0,t1,t2,f0,f1 from func_tbl order by time;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f1)), max(time) - min(time) from func_tbl;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f0)), max(time) - min(time) from func_tbl;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(time) from func_tbl;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(t0) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f0) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f1) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f2) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f3) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f4) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f0)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f1)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f2)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f3)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f4)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta() from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f0), gauge_agg(time, f0)) from func_tb2;"

gauge_agg


./target/debug/sqllogicaltests gauge_agg
Options { filters: ["gauge_agg"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gauge/gauge_agg.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gauge/gauge_agg.slt] Running query: "drop table if exists func_tbl;"
[/function/gauge/gauge_agg.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/gauge/gauge_agg.slt] Running query: "drop table if exists func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/gauge/gauge_agg.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/gauge/gauge_agg.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f1 order by time) from func_tbl;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f0 order by time) from func_tbl;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, t0 order by time) from func_tbl;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f0) as gauge from func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f1) as gauge from func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f2) as gauge from func_tb2;
---"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f3) as gauge from func_tb2;
---"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f3) as gauge from func_tb2;
---"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, time) as gauge from func_tb2;
---"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(t0, f0) as gauge from func_tb2;
---"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(f0, f0) as gauge from func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time) as gauge from func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(,f0) as gauge from func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg() as gauge from func_tb2;"
[/function/gauge/gauge_agg.slt] Running query: "select gauge_agg(time, f0, f1) as gauge from func_tb2;"

delta

Options { filters: ["delta"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gauge/delta.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gauge/delta.slt] Running query: "drop table if exists func_tbl;"
[/function/gauge/delta.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/gauge/delta.slt] Running query: "drop table if exists func_tb2;"
[/function/gauge/delta.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/gauge/delta.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/gauge/delta.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f1)) from func_tbl;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f0)) from func_tbl;"
[/function/gauge/delta.slt] Running query: "select delta(time) from func_tbl;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f0)) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f1)) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f2)) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f3)) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f4)) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(f0) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(f1) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(f2) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(f3) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(f4) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta() from func_tb2;"
[/function/gauge/delta.slt] Running query: "select deltas(gauge_agg(time, f0)) from func_tb2;"
[/function/gauge/delta.slt] Running query: "select delta(gauge_agg(time, f0), gauge_agg(time, f1)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gauge/time_delta.slt] Running query: "drop table if exists func_tbl;"
[/function/gauge/time_delta.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/gauge/time_delta.slt] Running query: "drop table if exists func_tb2;"
[/function/gauge/time_delta.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/gauge/time_delta.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/gauge/time_delta.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/gauge/time_delta.slt] Running query: "select time,t0,t1,t2,f0,f1 from func_tbl order by time;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f1)), max(time) - min(time) from func_tbl;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f0)), max(time) - min(time) from func_tbl;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(time) from func_tbl;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(t0) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f0) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f1) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f2) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f3) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(f4) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f0)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f1)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f2)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f3)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f4)) from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta() from func_tb2;"
[/function/gauge/time_delta.slt] Running query: "select time_delta(gauge_agg(time, f0), gauge_agg(time, f0)) from func_tb2;"

rate

./target/debug/sqllogicaltests rate           
Options { filters: ["rate"], complete_mode: false, host: "localhost", port: 8904 }
SqlClientOptions { host: "localhost", port: 8904, username: "root", password: "", tenant: "cnosdb", db: "public", target_partitions: 8 }
[/function/gauge/rate.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gauge/rate.slt] Running query: "drop table if exists func_tbl;"
[/function/gauge/rate.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tbl(f0 BIGINT , f1 bigint , TAGS(t0, t1, t2) );"
[/function/gauge/rate.slt] Running query: "drop table if exists func_tb2;"
[/function/gauge/rate.slt] Running query: "CREATE TABLE IF NOT EXISTS func_tb2(f0 BIGINT UNSIGNED, f1 DOUBLE, f2 BOOLEAN, f3 STRING, f4 BIGINT, TAGS(t0, t1, t2));"
[/function/gauge/rate.slt] Running query: "INSERT func_tbl(TIME, f0, f1, t0, t1)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag11', 'tag21'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag12', 'tag22'),
    ('1999-12-31 00:00:00.010', 333, 222, 'tag12', 'tag23'),
    ('1999-12-31 00:00:10.015', 444, 111, 'tag14', 'tag24'),
    ('1999-12-31 00:00:10.020', 222, 555, 'tag14', 'tag21'),
    ('1999-12-31 00:10:00.025', 333, 555, 'tag11', 'tag22'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag11', 'tag23'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag14', 'tag24');"
[/function/gauge/rate.slt] Running query: "INSERT INTO func_tb2(TIME, f0, f1, f2, f3, f4, t0, t1, t2) 
VALUES
    (100, 1000, 2010, true, 'f3001', -40001, 'tag01', 'tag11', 'tag21'),
    (101, 1001, 2000, false, 'f3001', 40001, 'tag02', 'tag11', 'tag21'),
    (102, 1000, 2003, true, 'f3003', -40002, 'tag01', 'tag13', 'tag29'),
    (103, 1002, 2000, false, 'f3001', 40002, 'tag01', 'tag11', 'tag21'),
    (104, 1000, 2005, true, 'f3007', -40002, 'tag01', 'tag11', 'tag21'),
    (105, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24'),
    (106, 1004, 2000, true, 'f3001', -40002, 'tag02', 'tag11', 'tag21'),
    (107, 1000, 2000, false, 'f3001', -40002, 'tag01', 'tag16', 'tag24');"
[/function/gauge/rate.slt] Running query: "alter database public set ttl '1000000d';"
[/function/gauge/rate.slt] Running query: "drop table if exists func_rate_tbl;"
[/function/gauge/rate.slt] Running query: "CREATE TABLE IF NOT EXISTS func_rate_tbl(f0 BIGINT , f1 bigint , TAGS(t0));"
[/function/gauge/rate.slt] Running query: "INSERT func_rate_tbl(TIME, f0, f1, t0)
VALUES
    ('1999-12-31 00:00:00.000', 111, 444, 'tag1'),
    ('1999-12-31 00:00:00.005', 222, 444, 'tag1');"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f1)), delta(gauge_agg(time, f1)), time_delta(gauge_agg(time, f1)) from func_rate_tbl group by t0 order by t0;"
[/function/gauge/rate.slt] Running query: "INSERT func_rate_tbl(TIME, f0, f1, t0)
VALUES
    ('1999-12-31 00:00:00.010', 222, 333, 'tag1');"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f1)), delta(gauge_agg(time, f1)), time_delta(gauge_agg(time, f1)) from func_rate_tbl group by t0 order by t0;"
[/function/gauge/rate.slt] Running query: "INSERT func_rate_tbl(TIME, f0, f1, t0)
VALUES
    ('1999-12-31 00:10:00.025', 333, 555, 'tag2'),
    ('1999-12-31 00:10:00.030', 444, 333, 'tag1'),
    ('1999-12-31 01:00:00.035', 555, 222, 'tag2');"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f1)), delta(gauge_agg(time, f1)), time_delta(gauge_agg(time, f1)) from func_rate_tbl group by t0 order by t0;"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f0)), delta(gauge_agg(time, f0)), time_delta(gauge_agg(time, f0)) from func_rate_tbl group by t0 order by t0;"
[/function/gauge/rate.slt] Running query: "select rate(time) from func_rate_tbl;"
[/function/gauge/rate.slt] Running query: "select rate() from func_rate_tbl;"
[/function/gauge/rate.slt] Running query: "select rate(t0) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(f0) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(f1) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(f2) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(f3) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(f4) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f1)) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f0)) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f2)) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f3)) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rate(gauge_agg(time, f4)) from func_tb2;"
[/function/gauge/rate.slt] Running query: "select rates(gauge_agg(time, f0)) from func_tb2;\"
[/function/gauge/rate.slt] Running query: "select rates({first: {ts: 1999-12-31T00:00:00, val: 444.0}, second: {ts: 1999-12-31T00:00:00.005, val: 444.0}, penultimate: {ts: 1999-12-31T00:10:00.030, val: 333.0}, last: {ts: 1999-12-31T01:00:00.035, val: 222.0}, num_elements: 8});"

@Benxiaohai001
Copy link
Member Author

#1587

@Benxiaohai001 Benxiaohai001 changed the title [TESTCASES]Add testcases about function delta, gauge_agg, rate and time_delta [TESTCASES]Add testcases about function, ddl, dml Oct 18, 2023
@Benxiaohai001 Benxiaohai001 merged commit 3d5414a into cnosdb:main Oct 18, 2023
7 checks passed
ZuoTiJia pushed a commit that referenced this pull request Nov 20, 2023
* add testcases about function delta, gauge_agg, rate and time_delta

* Update modify setup.slt expected

* add test cases about function, dml, ddl

* modify gis_loc_all to func_tb3

(cherry picked from commit 3d5414a)
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.

None yet

2 participants