@malloydata/malloy
Advanced tools
Comparing version 0.0.32-dev230427172247 to 0.0.32-dev230428002803
@@ -30,3 +30,3 @@ "use strict"; | ||
const castMap = { | ||
number: 'float64', | ||
'number': 'float64', | ||
}; | ||
@@ -43,4 +43,4 @@ // These are the units that "TIMESTAMP_ADD" accepts | ||
const extractMap = { | ||
day_of_week: 'dayofweek', | ||
day_of_year: 'dayofyear', | ||
'day_of_week': 'dayofweek', | ||
'day_of_year': 'dayofyear', | ||
}; | ||
@@ -65,6 +65,6 @@ class StandardSQLDialect extends dialect_1.Dialect { | ||
this.functionInfo = { | ||
timestamp_seconds: { | ||
'timestamp_seconds': { | ||
returnType: 'timestamp', | ||
}, | ||
concat: { returnType: 'string' }, | ||
'concat': { returnType: 'string' }, | ||
}; | ||
@@ -71,0 +71,0 @@ this.keywords = ` |
@@ -108,11 +108,11 @@ "use strict"; | ||
ExprTimeExtract.pluralMap = { | ||
years: 'year', | ||
quarters: 'quarter', | ||
months: 'month', | ||
weeks: 'week', | ||
days: 'day', | ||
hours: 'hour', | ||
minutes: 'minute', | ||
seconds: 'second', | ||
'years': 'year', | ||
'quarters': 'quarter', | ||
'months': 'month', | ||
'weeks': 'week', | ||
'days': 'day', | ||
'hours': 'hour', | ||
'minutes': 'minute', | ||
'seconds': 'second', | ||
}; | ||
//# sourceMappingURL=expr-time-extract.js.map |
@@ -38,3 +38,3 @@ "use strict"; | ||
const mockSchema = { | ||
aTable: { | ||
'aTable': { | ||
type: 'struct', | ||
@@ -41,0 +41,0 @@ name: 'aTable', |
@@ -70,3 +70,3 @@ "use strict"; | ||
exports.malloyFunctions = { | ||
row_number: { | ||
'row_number': { | ||
returnType: 'number', | ||
@@ -76,3 +76,3 @@ parameters: 'none', | ||
}, | ||
rank: { | ||
'rank': { | ||
returnType: 'number', | ||
@@ -82,3 +82,3 @@ parameters: 'none', | ||
}, | ||
dense_rank: { | ||
'dense_rank': { | ||
returnType: 'number', | ||
@@ -88,3 +88,3 @@ parameters: 'none', | ||
}, | ||
first_value_in_column: { | ||
'first_value_in_column': { | ||
returnType: 'number', | ||
@@ -95,3 +95,3 @@ parameters: 'any', | ||
}, | ||
last_value_in_column: { | ||
'last_value_in_column': { | ||
returnType: 'number', | ||
@@ -102,3 +102,3 @@ parameters: 'any', | ||
}, | ||
min_in_column: { | ||
'min_in_column': { | ||
returnType: 'number', | ||
@@ -109,3 +109,3 @@ parameters: 'any', | ||
}, | ||
max_in_column: { | ||
'max_in_column': { | ||
returnType: 'number', | ||
@@ -116,3 +116,3 @@ parameters: 'any', | ||
}, | ||
ntile: { | ||
'ntile': { | ||
returnType: 'number', | ||
@@ -122,3 +122,3 @@ parameters: ['nconst'], | ||
}, | ||
lag: { | ||
'lag': { | ||
returnType: 'number', | ||
@@ -125,0 +125,0 @@ parameters: ['number', 'nconst'], |
{ | ||
"name": "@malloydata/malloy", | ||
"version": "0.0.32-dev230427172247", | ||
"version": "0.0.32-dev230428002803", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
1877919