@vizzly/semantic-layer-public 0.0.106 → 0.0.108
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.
|
@@ -88,6 +88,18 @@ exports.timeDimensionsConstants = {
|
|
|
88
88
|
publicName: 'Daily',
|
|
89
89
|
dateFormat: 'DD-MM-YYYY',
|
|
90
90
|
},
|
|
91
|
+
weekOfYearOnly: {
|
|
92
|
+
publicName: 'Week of year',
|
|
93
|
+
dateFormat: 'week_of_year',
|
|
94
|
+
},
|
|
95
|
+
dayOfWeekOnly: {
|
|
96
|
+
publicName: 'Day of week',
|
|
97
|
+
dateFormat: 'day_of_week_iso',
|
|
98
|
+
},
|
|
99
|
+
dayOfMonthOnly: {
|
|
100
|
+
publicName: 'Day of month',
|
|
101
|
+
dateFormat: 'day_of_month',
|
|
102
|
+
},
|
|
91
103
|
second: {
|
|
92
104
|
publicName: 'Per second',
|
|
93
105
|
dateFormat: 'hh:mm:ss',
|
|
@@ -2,47 +2,51 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.queryEngineConfig = void 0;
|
|
4
4
|
const support_1 = require("./support");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
5
|
+
const sqldialects_1 = require("@vizzly/sqldialects");
|
|
6
|
+
const queryEngineConfig = () => {
|
|
7
|
+
const dialect = (0, sqldialects_1.getDialect)({ type: 'microsoftSQLServer' });
|
|
8
|
+
return {
|
|
9
|
+
origin: 'query-engine',
|
|
10
|
+
supportedFeatures: [
|
|
11
|
+
'simpleMaths',
|
|
12
|
+
'aggregateMaths',
|
|
13
|
+
'subquery',
|
|
14
|
+
'configManagerUi',
|
|
15
|
+
'switchField',
|
|
16
|
+
'roundedNumbers',
|
|
17
|
+
'sqlDefinedDataSet',
|
|
18
|
+
'encryptedDashboards',
|
|
19
|
+
'sqlViews',
|
|
20
|
+
'dateMaths',
|
|
21
|
+
],
|
|
22
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
23
|
+
'month',
|
|
24
|
+
'year',
|
|
25
|
+
'quarter',
|
|
26
|
+
'week',
|
|
27
|
+
'day',
|
|
28
|
+
'hour',
|
|
29
|
+
'minute',
|
|
30
|
+
...(dialect.context.flavour === 'kusto' ? [] : ['second']),
|
|
31
|
+
]),
|
|
32
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
33
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
34
|
+
'>',
|
|
35
|
+
'<',
|
|
36
|
+
'=',
|
|
37
|
+
'!=',
|
|
38
|
+
'>=',
|
|
39
|
+
'<=',
|
|
40
|
+
'is_one_of',
|
|
41
|
+
'is_not_one_of',
|
|
42
|
+
'starts_with',
|
|
43
|
+
'ends_with',
|
|
44
|
+
'contains_substring',
|
|
45
|
+
'does_not_contain_substring',
|
|
46
|
+
'array_contains',
|
|
47
|
+
'array_does_not_contain',
|
|
48
|
+
]),
|
|
49
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
50
|
+
};
|
|
51
|
+
};
|
|
48
52
|
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -50,4 +50,4 @@ export type SupportedAggregates = {
|
|
|
50
50
|
[id: string]: SupportedAggregate;
|
|
51
51
|
};
|
|
52
52
|
export type SupportedAggregateOption = string;
|
|
53
|
-
export type SupportedTimeFunctions = 'minute' | 'hour' | 'second' | 'week' | 'quarter' | 'year' | 'month' | 'day';
|
|
53
|
+
export type SupportedTimeFunctions = 'minute' | 'hour' | 'second' | 'week' | 'quarter' | 'year' | 'month' | 'day' | 'dayOfMonthOnly' | 'dayOfWeekOnly' | 'hourOfDayOnly' | 'weekOfYearOnly';
|