taosdemoTestSupportNanoQuerycsv.json 3.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
{
    "filetype": "query",
    "cfgdir": "/etc/taos",
    "host": "127.0.0.1",
    "port": 6030,
    "user": "root",
    "password": "taosdata",
    "confirm_parameter_prompt": "no",
    "databases": "nsdbcsv",
    "query_times": 10,
    "query_mode": "taosc",
    "specified_table_query": {
      "query_interval": 1,
      "concurrent": 2,
      "sqls": [
        {
          "sql": "select count(*) from stb0 where ts> \"2021-07-01 00:00:00.490000000\" ;",
          "result": "./query_res0.txt"
        },
        {
          "sql": "select count(*) from stb0 where ts < now -22d-1h-3s ;",
          "result": "./query_res1.txt"
        },
        {
            "sql": "select count(*) from stb0 where ts < 1626918583000000000 ;",
            "result": "./query_res2.txt"
        },
        {
          "sql": "select count(*) from stb0 where c2 <>  162687012800000000;",
          "result": "./query_res3.txt"
        },
        {
            "sql": "select count(*) from stb0 where c2 != \"2021-07-21 20:22:08.248246976\";",
            "result": "./query_res4.txt"
        },
        {
            "sql": "select count(*) from stb0 where ts between \"2021-07-01 00:00:00.000000000\" and \"2021-07-01 00:00:00.990000000\";",
            "result": "./query_res5.txt"
        },
        {
            "sql":"select count(*) from stb0 group by tbname;",
            "result":"./query_res6.txt"
        },
        {
          "sql":"select count(*) from stb0 where ts between 1625068800000000000 and 1625068801000000000;",
          "result":"./query_res7.txt"
        },
        {
          "sql":"select avg(c0) from stb0 interval(5000000000b);",
          "result":"./query_res8.txt"
        },
        {
          "sql":"select avg(c0) from stb0 interval(100000000b) sliding (100000000b);",
          "result":"./query_res9.txt"
        }

      ]
    },
    "super_table_query": {
      "stblname": "stb0",
      "query_interval": 0,
      "threads": 4,
      "sqls": [
        {
          "sql": "select count(*) from xxxx where ts > \"2021-07-01 00:00:00.490000000\" ;",
          "result": "./query_res_tb0.txt"
        },
        {
          "sql":"select count(*) from xxxx where ts between \"2021-07-01 00:00:00.000000000\" and \"2021-07-01 00:00:00.990000000\" ;",
          "result": "./query_res_tb1.txt"
        },
        {
            "sql":"select first(*) from xxxx ;",
            "result": "./query_res_tb2.txt"
        },
        {
            "sql":"select last(*) from xxxx;",
            "result": "./query_res_tb3.txt"

        },
        {
            "sql":"select last_row(*) from xxxx  ;",
            "result": "./query_res_tb4.txt"

        },
        {
            "sql":"select max(c0) from xxxx  ;",
            "result": "./query_res_tb5.txt"

        },
        {
            "sql":"select min(c0) from xxxx  ;",
            "result": "./query_res_tb6.txt"

        },
        {
            "sql":"select avg(c0) from xxxx  ;",
            "result": "./query_res_tb7.txt"

        },
        {
          "sql":"select avg(c0) from xxxx interval(100000000b) sliding (100000000b) ;",
          "result": "./query_res_tb8.txt"

        }


      ]
    }
  }