File tree 11 files changed +11
-47
lines changed
change_column_type_landing_and_recover_quarantine_data/scripts
change_copy_pipe_time_granularity/scripts
change_sorting_key_landing_data_source/scripts
create_a_materialized_view_batch_ingest
11 files changed +11
-47
lines changed Original file line number Diff line number Diff line change 2
2
#! /usr/bin/env bash
3
3
set -e
4
4
5
- VERSION=$1
6
-
7
5
directory=" datasources/fixtures"
8
6
extensions=(" csv" " ndjson" )
9
7
@@ -16,7 +14,7 @@ for extension in "${extensions[@]}"; do
16
14
file_name=$( basename " $file_path " )
17
15
file_name_without_extension=" ${file_name% .* } "
18
16
19
- command=" tb --semver $VERSION datasource append $file_name_without_extension datasources/fixtures/$file_name "
17
+ command=" tb datasource append $file_name_without_extension datasources/fixtures/$file_name "
20
18
echo $command
21
19
$command
22
20
done
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
export TB_VERSION_WARNING=0
6
- export VERSION=$1
7
6
8
7
run_test () {
9
8
t=$1
10
9
echo " ** Running $t **"
11
- # Check if VERSION is provided
12
- if [[ -n $VERSION ]]; then
13
- sed -i " s/tb/tb --semver $VERSION /" $t
14
- fi
15
10
echo " ** $( cat $t ) "
16
11
tmpfile=$( mktemp)
17
12
if bash $t $2 > $tmpfile ; then
@@ -36,7 +31,7 @@ run_test() {
36
31
export -f run_test
37
32
38
33
fail=0
39
- find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} $VERSION || fail=1
34
+ find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} || fail=1
40
35
41
36
if [ $fail == 1 ]; then
42
37
exit -1;
Original file line number Diff line number Diff line change 2
2
#! /usr/bin/env bash
3
3
set -euxo pipefail
4
4
5
- VERSION=$1
6
-
7
5
directory=" datasources/fixtures"
8
6
extensions=(" csv" " ndjson" )
9
7
@@ -16,7 +14,7 @@ for extension in "${extensions[@]}"; do
16
14
file_name=$( basename " $file_path " )
17
15
file_name_without_extension=" ${file_name% .* } "
18
16
19
- command=" tb --semver $VERSION datasource append $file_name_without_extension datasources/fixtures/$file_name "
17
+ command=" tb datasource append $file_name_without_extension datasources/fixtures/$file_name "
20
18
echo $command
21
19
$command
22
20
done
Original file line number Diff line number Diff line change 3
3
set -euxo pipefail
4
4
5
5
export TB_VERSION_WARNING=0
6
- export VERSION=$1
7
6
8
7
run_test () {
9
8
t=$1
10
9
echo " ** Running $t **"
11
- # Check if VERSION is provided
12
- if [[ -n $VERSION ]]; then
13
- sed -i " s/tb/tb --semver $VERSION /" $t
14
- fi
15
10
echo " ** $( cat $t ) "
16
11
tmpfile=$( mktemp)
17
12
if bash $t $2 > $tmpfile ; then
@@ -36,7 +31,7 @@ run_test() {
36
31
export -f run_test
37
32
38
33
fail=0
39
- find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} $VERSION || fail=1
34
+ find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} || fail=1
40
35
41
36
if [ $fail == 1 ]; then
42
37
exit -1;
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- VERSION=$1
4
-
5
3
directory=" datasources/fixtures"
6
4
extensions=(" csv" " ndjson" )
7
5
@@ -14,7 +12,7 @@ for extension in "${extensions[@]}"; do
14
12
file_name=$( basename " $file_path " )
15
13
file_name_without_extension=" ${file_name% .* } "
16
14
17
- command=" tb --semver $VERSION datasource append $file_name_without_extension datasources/fixtures/$file_name "
15
+ command=" tb datasource append $file_name_without_extension datasources/fixtures/$file_name "
18
16
echo $command
19
17
$command
20
18
done
Original file line number Diff line number Diff line change 2
2
set -euxo pipefail
3
3
4
4
export TB_VERSION_WARNING=0
5
- export VERSION=$1
6
5
7
6
run_test () {
8
7
t=$1
9
8
echo " ** Running $t **"
10
- # Check if VERSION is provided
11
- if [[ -n $VERSION ]]; then
12
- sed -i " s/tb/tb --semver $VERSION /" $t
13
- fi
14
9
echo " ** $( cat $t ) "
15
10
tmpfile=$( mktemp)
16
11
retries=0
@@ -55,7 +50,7 @@ run_test() {
55
50
export -f run_test
56
51
57
52
fail=0
58
- find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} $VERSION || fail=1
53
+ find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} || fail=1
59
54
60
55
if [ $fail == 1 ]; then
61
56
exit -1;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ Remember that in this example we are not ingesting data constanly to `analytics_
88
88
- At deployment time
89
89
90
90
``` sh
91
- tb --semver $VERSION pipe populate events_per_location_mat --node count_events_per_location
91
+ tb pipe populate events_per_location_mat --node count_events_per_location
92
92
```
93
93
94
94
For more complex use cases —i.e. having realtime ingest— check other entries of the [ use-case-examples repo] ( https://github.com/tinybirdco/use-case-examples ) .
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- tb --semver $VERSION pipe populate events_per_location_mat --node count_events_per_location --wait
4
+ tb pipe populate events_per_location_mat --node count_events_per_location --wait
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
export TB_VERSION_WARNING=0
4
- export VERSION=$1
5
4
6
5
run_test () {
7
6
t=$1
8
7
echo " ** Running $t **"
9
- # Check if VERSION is provided
10
- if [[ -n $VERSION ]]; then
11
- echo " VERSION found: $VERSION "
12
- sed -i " s/tb/tb --semver $VERSION /" $t
13
- else
14
- echo " VERSION not found"
15
- fi
16
8
echo " ** $( cat $t ) "
17
9
if res=$( bash $t $2 | diff -B ${t} .result -) ; then
18
10
echo ' OK' ;
@@ -26,7 +18,7 @@ run_test() {
26
18
export -f run_test
27
19
28
20
fail=0
29
- find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} $VERSION || fail=1
21
+ find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} || fail=1
30
22
31
23
if [ $fail == 1 ]; then
32
24
exit -1;
Original file line number Diff line number Diff line change 2
2
#! /usr/bin/env bash
3
3
set -euxo pipefail
4
4
5
- VERSION=$1
6
-
7
5
directory=" datasources/fixtures"
8
6
extensions=(" csv" " ndjson" )
9
7
@@ -16,7 +14,7 @@ for extension in "${extensions[@]}"; do
16
14
file_name=$( basename " $file_path " )
17
15
file_name_without_extension=" ${file_name% .* } "
18
16
19
- command=" tb --semver $VERSION datasource append $file_name_without_extension datasources/fixtures/$file_name "
17
+ command=" tb datasource append $file_name_without_extension datasources/fixtures/$file_name "
20
18
echo $command
21
19
$command
22
20
done
Original file line number Diff line number Diff line change 3
3
set -euxo pipefail
4
4
5
5
export TB_VERSION_WARNING=0
6
- export VERSION=$1
7
6
8
7
run_test () {
9
8
t=$1
10
9
echo " ** Running $t **"
11
- # Check if VERSION is provided
12
- if [[ -n $VERSION ]]; then
13
- sed -i " s/tb/tb --semver $VERSION /" $t
14
- fi
15
10
echo " ** $( cat $t ) "
16
11
tmpfile=$( mktemp)
17
12
retries=0
@@ -56,7 +51,7 @@ run_test() {
56
51
export -f run_test
57
52
58
53
fail=0
59
- find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} $VERSION || fail=1
54
+ find ./tests -name " *.test" -print0 | xargs -0 -I {} -P 4 bash -c ' run_test "$@"' _ {} || fail=1
60
55
61
56
if [ $fail == 1 ]; then
62
57
exit -1;
You can’t perform that action at this time.
0 commit comments