taosdemoTestSupportNanoQuery.json 2.4 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
{
    "filetype": "query",
    "cfgdir": "/etc/taos",
    "host": "127.0.0.1",
    "port": 6030,
    "user": "root",
    "password": "taosdata",
    "confirm_parameter_prompt": "no",
    "databases": "nsdb",
    "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:01:00.000000000 \" ;",
          "result": "./query_res0.txt"
        },
        {
          "sql": "select count(*) from stb0 where ts>\"2021-07-01 00:01:00.000000000\" and ts <=\"2021-07-01 00:01:10.000000000\" ;",
          "result": "./query_res1.txt"
        },
        {
            "sql": "select count(*) from stb0 where ts>now-20d ;",
            "result": "./query_res2.txt"
        },
        {
          "sql": "select max(c10) from stb0;",
          "result": "./query_res3.txt"
        },
        {
            "sql": "select min(c1) from stb0;",
            "result": "./query_res4.txt"
        },
        {
            "sql": "select avg(c1) from stb0;",
            "result": "./query_res5.txt"
        },
        {
            "sql":"select count(*) from stb0 group by tbname;",
            "result":"./query_res6.txt"
        }

      ]
    },
    "super_table_query": {
      "stblname": "stb0",
      "query_interval": 0,
      "threads": 4,
      "sqls": [
        {
          "sql": "select count(*) from xxxx where ts>\"2021-07-01 00:01:00.000000000 \" ;",
          "result": "./query_res_tb0.txt"
        },
        {
          "sql":"select count(*) from xxxx where ts>\"2021-07-01 00:01:00.000000000\" and ts <=\"2021-07-01 00:01:10.000000000\" ;",
          "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(c10) from xxxx  ;",
            "result": "./query_res_tb5.txt"

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

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

        }

      ]
    }
  }