Skip to content

Commit

Permalink
set the upper limit of scale factor to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
RupengWang committed Mar 11, 2020
1 parent 10c2a74 commit 1ecdf73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -16,7 +16,7 @@ Before we start, you could adjust parameters to customize the SSB data set that

We extended [the original SSB-DBGen](https://github.com/electrum/ssb-dbgen) tools to support column cardinality configuration.

**SCALE** is the key scale factor,ranging from 0.01 to 100+. Default value is 0.1.
**SCALE** is the key scale factor,ranging from 0.01 to 100+. Default value is 0.1. Until now, the max scale factor supported is 1000.

Other properties in `bin/ssb.conf`:

Expand Down
10 changes: 10 additions & 0 deletions bin/run.sh
Expand Up @@ -46,6 +46,16 @@ do
shift
done

scale2int=$scale
if ! [[ "$scale" =~ ^[0-9]+$ ]]; then
scale2int=`echo $scale |awk '{ print int($0)+1}'`
fi

if [ ${scale2int} -gt 1000 ]; then
echo 'Scale factor > 1000 since implementation is incomplete.'
exit
fi

# check for existence of hadoop streaming
if [ -n "$HADOOP_HOME" ]; then
# for hadoop 1.0.x
Expand Down

0 comments on commit 1ecdf73

Please sign in to comment.