Back to Doris

Usage

tools/ssb-tools/README.md

4.1.01.5 KB
Original Source
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

Usage

These scripts are used to make ssb and ssb flat test.
The ssb flat data comes from ssb tables by way of 'INSERT INTO ... SELECT ...'.

ssb test, follow the steps below:

1. build ssb dbgen tool.

./bin/build-ssb-dbgen.sh

2. generate ssb data. use -h for more infomations.

./bin/gen-ssb-data.sh -s 1

3. create ssb tables. modify conf/doris-cluster.conf to specify Doris cluster info, then run script below.

./bin/create-ssb-tables.sh -s 1

4. load ssb data. use -h for help.

./bin/load-ssb-data.sh

5. run ssb queries.

./bin/run-ssb-queries.sh

ssb flat test, follow the steps below:

1. prepare ssb data, which means ssb test steps 1 to 4 have been done.

2. run ssb flat queries.

./bin/run-ssb-flat-queries.sh