123456789101112131415161718192021222324 |
- #!/usr/bin/env bash
- ROOT=$(cd `dirname $0`/../../; pwd)
- cd $ROOT
- source $ROOT/shell/tsdb/common.sh
- storagePath="root.test1.wf01.wt01"
- days=1
- pointIndex=1
- echo "----test query range days:$days"
- beginDate="2018-06-01 00:00:00"
- echo beginDate:beginDate
- for days in 1 2 3 4 7 15 30 60 90
- do
- endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
- #endDate="2022-12-02 00:00:00"
- echo endDate:$endDate
- java -cp ./lib/iotdb.jar demo.query.histQuery.QuerySinglePointHistData \
- --host $host --storagePath ${storagePath} --pointNamePrefix pointName1_ --pointIndex $pointIndex \
- --beginDate "$beginDate" --endDate "$endDate" \
- --showQueryResult 0 2>&1 | tee -a ./log/iotdb/out.log
- done
|