Skip to content

Commit

Permalink
Merge branch 'main' into experimental-dialects
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoy-googly-moogly committed Mar 18, 2024
2 parents 2e83075 + a3d5be3 commit a070058
Show file tree
Hide file tree
Showing 32 changed files with 57 additions and 703 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": false,
"version": "0.0.132",
"version": "0.0.133",
"command": {
"version": {
"allowBranch": "main"
Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/malloy-db-bigquery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/db-bigquery",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -25,7 +25,7 @@
"@google-cloud/bigquery": "^7.3.0",
"@google-cloud/common": "^5.0.1",
"@google-cloud/paginator": "^5.0.0",
"@malloydata/malloy": "^0.0.132",
"@malloydata/malloy": "^0.0.133",
"gaxios": "^4.2.0"
}
}
4 changes: 2 additions & 2 deletions packages/malloy-db-duckdb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/db-duckdb",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -41,7 +41,7 @@
},
"dependencies": {
"@duckdb/duckdb-wasm": "1.28.1-dev106.0",
"@malloydata/malloy": "^0.0.132",
"@malloydata/malloy": "^0.0.133",
"@motherduck/wasm-client": "^0.4.0",
"apache-arrow": "^14.0.0",
"duckdb": "0.9.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/malloy-db-postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/db-postgres",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -22,7 +22,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@malloydata/malloy": "^0.0.132",
"@malloydata/malloy": "^0.0.133",
"@types/pg": "^8.6.1",
"pg": "^8.7.1",
"pg-query-stream": "4.2.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/malloy-db-snowflake/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/db-snowflake",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -21,7 +21,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@malloydata/malloy": "^0.0.132",
"@malloydata/malloy": "^0.0.133",
"@types/snowflake-sdk": "^1.6.16",
"generic-pool": "^3.9.0",
"snowflake-sdk": "^1.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/malloy-db-trino/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/db-trino",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/tmp_index.js",
"types": "dist/tmp_index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/malloy-interfaces/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/malloy-interfaces",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/malloy-lint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/eslint-plugin-lint",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/malloy-malloy-sql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/malloy-sql",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -24,7 +24,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@malloydata/malloy": "^0.0.132"
"@malloydata/malloy": "^0.0.133"
},
"devDependencies": {
"peggy": "^3.0.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/malloy-render/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/render",
"version": "0.0.132",
"version": "0.0.133",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -25,7 +25,7 @@
},
"dependencies": {
"@lit/context": "^1.1.0",
"@malloydata/malloy": "^0.0.132",
"@malloydata/malloy": "^0.0.133",
"@types/luxon": "^2.4.0",
"lit": "^3.0.2",
"lodash": "^4.17.20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ export const monarch: Monaco.IMonarchLanguage = {
{include: '@identifiers_unquoted'},
],
sql_string: [
[
/\b(select)(\s*:\s*)(""")/,
[
'keyword.control.select',
'',
{
next: '@sql_end',
nextEmbedded: 'sql',
token: 'punctuation.sql.block.open',
},
],
],
[
/(\b[A-Za-z_][A-Za-z_0-9]*)(\s*\.\s*)(sql)(\s*\(\s*)(""")/,
[
Expand Down Expand Up @@ -196,7 +184,6 @@ export const monarch: Monaco.IMonarchLanguage = {
],
properties: [
[/\baccept\b/, 'keyword.control.accept'],
[/\bsql\b/, 'keyword.control.sql'],
[/\bselect\b/, 'keyword.control.select'],
[/\bconnection\b/, 'keyword.control.connection'],
[/\brun\b/, 'keyword.control.run'],
Expand Down Expand Up @@ -236,7 +223,7 @@ export const monarch: Monaco.IMonarchLanguage = {
['entity.name.function', '', 'entity.name.function.modifier'],
],
[
/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|TABLE|FROM|FROM_SQL|UNGROUPED)(\s*\()/,
/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\s*\()/,
['entity.name.function', ''],
],
[/\b([a-zA-Z_][a-zA-Z_0-9]*)(\s*\()/, ['entity.name.function', '']],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@
},
"sql-string": {
"patterns": [
{
"begin": "\\b(select)(\\s*:\\s*)(\"\"\")",
"end": "\"\"\"",
"beginCaptures": {
"1": { "name": "keyword.control.select" },
"3": { "name": "punctuation.sql-block.open" }
},
"endCaptures": {
"0": { "name": "punctuation.sql-block.close" }
},
"name": "source.sql",
"patterns": [
{ "include": "#malloy-in-sql" },
{ "include": "source.sql" }
]
},
{
"begin": "(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(\"\"\")",
"end": "\"\"\"",
Expand Down Expand Up @@ -84,7 +68,7 @@
}
},
{
"match": "(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|TABLE|FROM|FROM_SQL|UNGROUPED)(\\s*\\()",
"match": "(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",
"captures": {
"1": { "name": "entity.name.function" }
}
Expand Down Expand Up @@ -350,11 +334,7 @@
"match": "(?i)\\baccept\\b",
"name": "keyword.control.accept"
},
{
"match": "(?i)\\bsql\\b",
"name": "keyword.control.sql"
},
{
{
"match": "(?i)\\bselect\\b",
"name": "keyword.control.select"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default [
["/'regexp string /*-- \\escapes\\uFFFF \\'more\\"],
['"/* -- \\e\\uFFFF \\\'\\'],
["state ~ 'CA' | r'M.' | \"CO\" | /'O.' -- end"],
['select: """ SELECT 1 """'],
['run: duckdb.sql("""', ' SELECT 1', '""")'],
// [
// 'select: """',
Expand Down
Loading

0 comments on commit a070058

Please sign in to comment.