File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ jobs:
5353 run : tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud deployment create --auto --wait
5454 - name : Populate datasource if empty
5555 run : |
56- COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --format json sql "SELECT count() AS c FROM users" | grep '"c":' | awk '{print $2}')
56+ COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --output json sql "SELECT count() AS c FROM users" | grep '"c":' | awk '{print $2}')
5757 if [ "$COUNT" -eq 0 ]; then
5858 tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud copy run populate --wait
5959 else
6060 echo "Datasource is not empty, skipping population"
6161 fi
6262 - name : Check users datasource
6363 run : |
64- COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --format json sql "SELECT count() AS c FROM users" | grep '"c":' | awk '{print $2}')
64+ COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --output json sql "SELECT count() AS c FROM users" | grep '"c":' | awk '{print $2}')
6565 if [ "$COUNT" -eq 1000000000 ]; then
6666 echo "Datasource data is correct"
6767 else
7070 fi
7171 - name : Check user_stats datasource
7272 run : |
73- COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --format json sql "SELECT count() AS c FROM user_stats" | grep '"c":' | awk '{print $2}')
73+ COUNT=$(tb --host $TINYBIRD_FWD_HOST --token $TINYBIRD_FWD_TOKEN --cloud --output json sql "SELECT count() AS c FROM user_stats" | grep '"c":' | awk '{print $2}')
7474 if [ "$COUNT" -gt 0 ]; then
7575 echo "Datasource data is correct"
7676 else
You can’t perform that action at this time.
0 commit comments