@malloydata/malloy-tests 0.0.264 → 0.0.265-dev250416031350
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,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "^0.0.
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.
|
|
28
|
-
"@malloydata/db-trino": "^0.0.
|
|
29
|
-
"@malloydata/malloy": "^0.0.
|
|
30
|
-
"@malloydata/malloy-tag": "^0.0.
|
|
31
|
-
"@malloydata/render": "^0.0.
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.265-dev250416031350",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.265-dev250416031350",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.265-dev250416031350",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.265-dev250416031350",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.265-dev250416031350",
|
|
29
|
+
"@malloydata/malloy": "^0.0.265-dev250416031350",
|
|
30
|
+
"@malloydata/malloy-tag": "^0.0.265-dev250416031350",
|
|
31
|
+
"@malloydata/render": "^0.0.265-dev250416031350",
|
|
32
32
|
"events": "^3.3.0",
|
|
33
33
|
"jsdom": "^22.1.0",
|
|
34
34
|
"luxon": "^2.4.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/jsdom": "^21.1.1",
|
|
39
39
|
"@types/luxon": "^2.4.0"
|
|
40
40
|
},
|
|
41
|
-
"version": "0.0.
|
|
41
|
+
"version": "0.0.265-dev250416031350"
|
|
42
42
|
}
|
|
@@ -100,6 +100,26 @@ describe.each(runtimes.runtimeList)(
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
+
it(`runs the regexp_extract function - ${databaseName}`, async () => {
|
|
104
|
+
await expect(`run: ${databaseName}.sql("SELECT 1 as n") -> {
|
|
105
|
+
select:
|
|
106
|
+
extract is regexp_extract('1a 2b 14m', r'\\d+')
|
|
107
|
+
group is regexp_extract('1a 2b 14m', r'(\\d+)([a-z]+)', 2)
|
|
108
|
+
}`).malloyResultMatches(runtime, {
|
|
109
|
+
extract: '1',
|
|
110
|
+
group: 'a',
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it(`runs the split_part function - ${databaseName}`, async () => {
|
|
115
|
+
await expect(`run: ${databaseName}.sql("SELECT 1 as n") -> {
|
|
116
|
+
select:
|
|
117
|
+
part is split_part('one/two/three', '/', 2)
|
|
118
|
+
}`).malloyResultMatches(runtime, {
|
|
119
|
+
part: 'two',
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
103
123
|
it(`runs the approx_percentile function - ${databaseName}`, async () => {
|
|
104
124
|
await expect(`run: ${databaseName}.sql("""
|
|
105
125
|
SELECT 1 as n
|