@malloydata/malloy-tests 0.0.149-dev240704171255 → 0.0.149-dev240706223116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/trino/trino_start.sh +34 -0
- package/trino/trino_stop.sh +7 -0
package/package.json
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "^0.0.149-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.149-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.149-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.149-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.149-
|
|
29
|
-
"@malloydata/malloy": "^0.0.149-
|
|
30
|
-
"@malloydata/render": "^0.0.149-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.149-dev240706223116",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.149-dev240706223116",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.149-dev240706223116",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.149-dev240706223116",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.149-dev240706223116",
|
|
29
|
+
"@malloydata/malloy": "^0.0.149-dev240706223116",
|
|
30
|
+
"@malloydata/render": "^0.0.149-dev240706223116",
|
|
31
31
|
"jsdom": "^22.1.0",
|
|
32
32
|
"luxon": "^2.4.0",
|
|
33
33
|
"madge": "^6.0.0"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/jsdom": "^21.1.1",
|
|
37
37
|
"@types/luxon": "^2.4.0"
|
|
38
38
|
},
|
|
39
|
-
"version": "0.0.149-
|
|
39
|
+
"version": "0.0.149-dev240706223116"
|
|
40
40
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#! /bin/bash
|
|
2
|
+
rm -rf .tmp
|
|
3
|
+
mkdir .tmp
|
|
4
|
+
|
|
5
|
+
# generate config file
|
|
6
|
+
> ./.tmp/bigquery.properties
|
|
7
|
+
cat << EOF > ./.tmp/bigquery.properties
|
|
8
|
+
connector.name=bigquery
|
|
9
|
+
bigquery.project-id=advance-lacing-417917
|
|
10
|
+
bigquery.credentials-key=$BQ_CREDENTIALS_KEY
|
|
11
|
+
bigquery.arrow-serialization.enabled=false
|
|
12
|
+
EOF
|
|
13
|
+
|
|
14
|
+
# run docker
|
|
15
|
+
docker run -p 8090:8080 -d -v ./.tmp/bigquery.properties:/etc/trino/catalog/bigquery.properties --name trino-malloy trinodb/trino
|
|
16
|
+
|
|
17
|
+
# wait for server to start
|
|
18
|
+
counter=0
|
|
19
|
+
while ! docker logs trino-malloy 2>&1 | grep -q "SERVER STARTED"
|
|
20
|
+
do
|
|
21
|
+
sleep 1
|
|
22
|
+
counter=$((counter+1))
|
|
23
|
+
# if doesn't start after 2 minutes, output logs and kill process
|
|
24
|
+
if [ $counter -eq 120 ]
|
|
25
|
+
then
|
|
26
|
+
docker logs trino-malloy >& ./.tmp/trino-malloy.logs
|
|
27
|
+
docker rm -f trino-malloy
|
|
28
|
+
echo "Trino did not start successfully, check .tmp/trino-malloy.logs"
|
|
29
|
+
exit 1
|
|
30
|
+
break
|
|
31
|
+
fi
|
|
32
|
+
done
|
|
33
|
+
|
|
34
|
+
echo "Trino running on port localhost:8090"
|