Package not found. Please check the package name and try again.
@malloydata/malloy-tests 0.0.233-dev250128221207 → 0.0.233-dev250201002938
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
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "^0.0.233-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.233-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.233-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.233-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.233-
|
|
29
|
-
"@malloydata/malloy": "^0.0.233-
|
|
30
|
-
"@malloydata/render": "^0.0.233-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.233-dev250201002938",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.233-dev250201002938",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.233-dev250201002938",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.233-dev250201002938",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.233-dev250201002938",
|
|
29
|
+
"@malloydata/malloy": "^0.0.233-dev250201002938",
|
|
30
|
+
"@malloydata/render": "^0.0.233-dev250201002938",
|
|
31
31
|
"events": "^3.3.0",
|
|
32
32
|
"jsdom": "^22.1.0",
|
|
33
33
|
"luxon": "^2.4.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"@types/jsdom": "^21.1.1",
|
|
38
38
|
"@types/luxon": "^2.4.0"
|
|
39
39
|
},
|
|
40
|
-
"version": "0.0.233-
|
|
40
|
+
"version": "0.0.233-dev250201002938"
|
|
41
41
|
}
|
package/presto/presto_start.sh
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
#! /bin/bash
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
2
5
|
rm -rf .tmp
|
|
3
6
|
mkdir .tmp
|
|
4
7
|
|
|
5
8
|
# generate config file
|
|
6
|
-
> ./.tmp/bigquery.properties
|
|
7
|
-
cat << EOF > ./.tmp/bigquery.properties
|
|
9
|
+
> ./.tmp/bigquery-pesto.properties
|
|
10
|
+
cat << EOF > ./.tmp/bigquery-pesto.properties
|
|
8
11
|
connector.name=bigquery
|
|
9
12
|
bigquery.project-id=advance-lacing-417917
|
|
10
13
|
bigquery.credentials-key=$BQ_CREDENTIALS_KEY
|
|
11
14
|
EOF
|
|
12
15
|
|
|
13
16
|
# run docker
|
|
14
|
-
docker run -p 8080:8080 -d -v ./.tmp/bigquery.properties:/opt/presto-server/etc/catalog/bigquery.properties --name presto-malloy prestodb/presto:0.287
|
|
17
|
+
docker run -p ${PRESTO_PORT:-8080}:8080 -d -v ./.tmp/bigquery-pesto.properties:/opt/presto-server/etc/catalog/bigquery.properties --name presto-malloy prestodb/presto:0.287
|
|
15
18
|
|
|
16
19
|
# wait for server to start
|
|
17
20
|
counter=0
|
|
@@ -544,7 +544,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
544
544
|
});
|
|
545
545
|
|
|
546
546
|
test.when(runtime.supportsNesting)(
|
|
547
|
-
|
|
547
|
+
`number as null 2 - ${databaseName}`,
|
|
548
548
|
async () => {
|
|
549
549
|
// a cross join produces a Many to Many result.
|
|
550
550
|
// symmetric aggregate are needed on both sides of the join
|
|
@@ -614,7 +614,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
614
614
|
});
|
|
615
615
|
|
|
616
616
|
test.when(runtime.supportsNesting)(
|
|
617
|
-
|
|
617
|
+
`ungrouped top level with nested - ${databaseName}`,
|
|
618
618
|
async () => {
|
|
619
619
|
await expect(`
|
|
620
620
|
run: ${databaseName}.table('malloytest.state_facts') extend {
|
|
@@ -648,7 +648,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
648
648
|
});
|
|
649
649
|
|
|
650
650
|
test.when(runtime.supportsNesting)(
|
|
651
|
-
|
|
651
|
+
`ungrouped nested with no grouping above - ${databaseName}`,
|
|
652
652
|
async () => {
|
|
653
653
|
await expect(`
|
|
654
654
|
// # test.debug
|
|
@@ -666,7 +666,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
666
666
|
);
|
|
667
667
|
|
|
668
668
|
test.when(runtime.supportsNesting)(
|
|
669
|
-
|
|
669
|
+
`ungrouped - partial grouping - ${databaseName}`,
|
|
670
670
|
async () => {
|
|
671
671
|
await expect(`
|
|
672
672
|
run: ${databaseName}.table('malloytest.airports') extend {
|
|
@@ -700,7 +700,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
700
700
|
);
|
|
701
701
|
|
|
702
702
|
test.when(runtime.supportsNesting)(
|
|
703
|
-
|
|
703
|
+
`ungrouped - all nested - ${databaseName}`,
|
|
704
704
|
async () => {
|
|
705
705
|
await expect(`
|
|
706
706
|
run: ${databaseName}.table('malloytest.airports') extend {
|
|
@@ -729,7 +729,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
729
729
|
);
|
|
730
730
|
|
|
731
731
|
test.when(runtime.supportsNesting)(
|
|
732
|
-
|
|
732
|
+
`ungrouped nested - ${databaseName}`,
|
|
733
733
|
async () => {
|
|
734
734
|
await expect(`
|
|
735
735
|
run: ${databaseName}.table('malloytest.state_facts') extend {
|
|
@@ -747,7 +747,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
747
747
|
);
|
|
748
748
|
|
|
749
749
|
test.when(runtime.supportsNesting)(
|
|
750
|
-
|
|
750
|
+
`ungrouped nested expression - ${databaseName}`,
|
|
751
751
|
async () => {
|
|
752
752
|
await expect(`
|
|
753
753
|
run: ${databaseName}.table('malloytest.state_facts') extend {
|
|
@@ -765,7 +765,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
765
765
|
);
|
|
766
766
|
|
|
767
767
|
test.when(runtime.supportsNesting)(
|
|
768
|
-
|
|
768
|
+
`ungrouped nested group by float - ${databaseName}`,
|
|
769
769
|
async () => {
|
|
770
770
|
await expect(`
|
|
771
771
|
run: ${databaseName}.table('malloytest.state_facts') extend {
|
|
@@ -847,7 +847,7 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
|
|
|
847
847
|
});
|
|
848
848
|
|
|
849
849
|
test.when(runtime.supportsNesting)(
|
|
850
|
-
|
|
850
|
+
`all with parameters - nest - ${databaseName}`,
|
|
851
851
|
async () => {
|
|
852
852
|
await expect(`
|
|
853
853
|
run: ${databaseName}.table('malloytest.state_facts') extend {
|
|
@@ -1118,7 +1118,7 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
|
|
|
1118
1118
|
});
|
|
1119
1119
|
|
|
1120
1120
|
test.when(runtime.supportsNesting)(
|
|
1121
|
-
|
|
1121
|
+
`nest null - ${databaseName}`,
|
|
1122
1122
|
async () => {
|
|
1123
1123
|
const result = await runtime
|
|
1124
1124
|
.loadQuery(
|
|
@@ -1230,7 +1230,7 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
|
|
|
1230
1230
|
});
|
|
1231
1231
|
|
|
1232
1232
|
test.when(runtime.supportsNesting)(
|
|
1233
|
-
|
|
1233
|
+
`number as null- ${databaseName}`,
|
|
1234
1234
|
async () => {
|
|
1235
1235
|
const result = await runtime
|
|
1236
1236
|
.loadQuery(
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import {describeIfDatabaseAvailable} from '../../util';
|
|
25
25
|
import {RuntimeList, TestCacheManager, TestURLReader} from '../../runtimes';
|
|
26
26
|
|
|
27
|
-
const [
|
|
27
|
+
const [describe, databases] = describeIfDatabaseAvailable(['duckdb']);
|
|
28
28
|
const runtimes = new RuntimeList(databases);
|
|
29
29
|
|
|
30
30
|
describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
package/trino/trino_start.sh
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#! /bin/bash
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
2
5
|
rm -rf .tmp
|
|
3
6
|
mkdir .tmp
|
|
4
7
|
|
|
@@ -8,8 +11,8 @@ if [ "x${BQ_CREDENTIALS_KEY}" = x ]; then
|
|
|
8
11
|
exit 1
|
|
9
12
|
fi
|
|
10
13
|
# generate config file
|
|
11
|
-
> ./.tmp/bigquery.properties
|
|
12
|
-
cat << EOF > ./.tmp/bigquery.properties
|
|
14
|
+
> ./.tmp/bigquery-trino.properties
|
|
15
|
+
cat << EOF > ./.tmp/bigquery-trino.properties
|
|
13
16
|
connector.name=bigquery
|
|
14
17
|
bigquery.project-id=advance-lacing-417917
|
|
15
18
|
bigquery.credentials-key=$BQ_CREDENTIALS_KEY
|
|
@@ -17,7 +20,7 @@ bigquery.arrow-serialization.enabled=false
|
|
|
17
20
|
EOF
|
|
18
21
|
|
|
19
22
|
# run docker
|
|
20
|
-
docker run -p 8080:8080 -d -v ./.tmp/bigquery.properties:/etc/trino/catalog/bigquery.properties --name trino-malloy trinodb/trino
|
|
23
|
+
docker run -p ${TRINO_PORT:-8080}:8080 -d -v ./.tmp/bigquery-trino.properties:/etc/trino/catalog/bigquery.properties --name trino-malloy trinodb/trino
|
|
21
24
|
|
|
22
25
|
# wait for server to start
|
|
23
26
|
counter=0
|