@gooddata/code-cli 0.54.0-alpha.4 → 0.54.0-alpha.5
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/NOTICE +53 -53
- package/dist/index.js +97 -97
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37370,7 +37370,7 @@ function isPromise(value) {
|
|
|
37370
37370
|
//#endregion
|
|
37371
37371
|
//#region package.json
|
|
37372
37372
|
var name$1 = "@gooddata/code-cli";
|
|
37373
|
-
var version$1 = "0.54.0-alpha.
|
|
37373
|
+
var version$1 = "0.54.0-alpha.5";
|
|
37374
37374
|
//#endregion
|
|
37375
37375
|
//#region ../../../common/temp/aac/node_modules/.pnpm/vscode-languageserver@8.1.0/node_modules/vscode-languageserver/lib/common/utils/is.js
|
|
37376
37376
|
var require_is$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -87230,7 +87230,7 @@ var require_dist$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
87230
87230
|
exports.visitAsync = visit.visitAsync;
|
|
87231
87231
|
}));
|
|
87232
87232
|
//#endregion
|
|
87233
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87233
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/maqlObjectTypes.js
|
|
87234
87234
|
var import_main$1 = require_main();
|
|
87235
87235
|
var import_out = require_out();
|
|
87236
87236
|
var import_dist$7 = /* @__PURE__ */ __toESM(require_dist$7(), 1);
|
|
@@ -87260,7 +87260,7 @@ function toMaqlObjectType(tigerType) {
|
|
|
87260
87260
|
return TIGER_TYPE_TO_MAQL_OBJECT_TYPE[tigerType] ?? tigerType;
|
|
87261
87261
|
}
|
|
87262
87262
|
//#endregion
|
|
87263
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87263
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/tokenRanges.js
|
|
87264
87264
|
function isMaqlObject(obj) {
|
|
87265
87265
|
return "actualType" in obj;
|
|
87266
87266
|
}
|
|
@@ -87320,7 +87320,7 @@ var AntlrRange = class AntlrRange {
|
|
|
87320
87320
|
}
|
|
87321
87321
|
};
|
|
87322
87322
|
//#endregion
|
|
87323
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87323
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/labelElements.js
|
|
87324
87324
|
const { AbstractAstVisitor: AbstractAstVisitor$3, positionInRange: positionInRange$1 } = import_dist$7.default;
|
|
87325
87325
|
/**
|
|
87326
87326
|
* Uses a visitor to make a depth-first tree-walk of a MAQL parse tree to find a correct "LabelContext"
|
|
@@ -87493,7 +87493,7 @@ var LabelElementsFinder = class extends LabelContextMarker {
|
|
|
87493
87493
|
}
|
|
87494
87494
|
};
|
|
87495
87495
|
//#endregion
|
|
87496
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87496
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/metadata/parameters.js
|
|
87497
87497
|
const { escapeString: escapeString$1 } = import_dist$7.default;
|
|
87498
87498
|
function parameterTypeLabel(definition) {
|
|
87499
87499
|
return definition.type.toLowerCase();
|
|
@@ -87525,7 +87525,7 @@ function parameterMaqlLiteral(definition) {
|
|
|
87525
87525
|
return isStringParameterDefinition(definition) ? escapeString$1(definition.defaultValue, "\"") : String(definition.defaultValue);
|
|
87526
87526
|
}
|
|
87527
87527
|
//#endregion
|
|
87528
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87528
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/parseMaql.js
|
|
87529
87529
|
var import_antlr4ts = require_antlr4ts();
|
|
87530
87530
|
const { CaseInsensitiveCharStream, MaqlAstVisitor, MaqlLexer: MaqlLexer$4, MaqlParser: MaqlParser$5 } = import_dist$7.default;
|
|
87531
87531
|
/**
|
|
@@ -87618,7 +87618,7 @@ function getTokenIdFromName(name) {
|
|
|
87618
87618
|
return new MaqlLexer$4(new CaseInsensitiveCharStream(name)).nextToken().type;
|
|
87619
87619
|
}
|
|
87620
87620
|
//#endregion
|
|
87621
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87621
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/types/hierarchy.js
|
|
87622
87622
|
var MaqlType;
|
|
87623
87623
|
(function(MaqlType) {
|
|
87624
87624
|
/** Top type (supertype of all types) */
|
|
@@ -87759,7 +87759,7 @@ function withSupertypes(type) {
|
|
|
87759
87759
|
return [type, ...sups.length > 0 ? sups : [MaqlType.ANY]];
|
|
87760
87760
|
}
|
|
87761
87761
|
//#endregion
|
|
87762
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87762
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/constants.js
|
|
87763
87763
|
const LanguageId$1 = "maql";
|
|
87764
87764
|
const diagnosticsSource = LanguageId$1.toUpperCase();
|
|
87765
87765
|
var ErrorCodes;
|
|
@@ -87781,7 +87781,7 @@ var ErrorCodes;
|
|
|
87781
87781
|
ErrorCodes[ErrorCodes["ParameterValueUncovered"] = 14] = "ParameterValueUncovered";
|
|
87782
87782
|
})(ErrorCodes || (ErrorCodes = {}));
|
|
87783
87783
|
//#endregion
|
|
87784
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87784
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/findObjects.js
|
|
87785
87785
|
var import_tree = require_tree();
|
|
87786
87786
|
const { AttributeTypeContext: AttributeTypeContext$1, MaqlParser: MaqlParser$4, NumericTypeContext: NumericTypeContext$1 } = import_dist$7.default;
|
|
87787
87787
|
function findAllObjects(metric) {
|
|
@@ -87835,7 +87835,7 @@ var ObjectFinder = class {
|
|
|
87835
87835
|
}
|
|
87836
87836
|
};
|
|
87837
87837
|
//#endregion
|
|
87838
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87838
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/parameterConstraints.js
|
|
87839
87839
|
const { MaqlLexer: MaqlLexer$3 } = import_dist$7.default;
|
|
87840
87840
|
function validateParameterConstraints(metric, ldmObjects) {
|
|
87841
87841
|
if (!ldmObjects.get("parameter").some((parameter) => isStringParameterDefinition(parameter.definition) && parameter.definition.constraints?.allowedValues?.length)) return [];
|
|
@@ -87986,7 +87986,7 @@ function findCaseNodes(node) {
|
|
|
87986
87986
|
return isCaseNode(node) ? [node, ...nested] : nested;
|
|
87987
87987
|
}
|
|
87988
87988
|
//#endregion
|
|
87989
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
87989
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/types/signatures.js
|
|
87990
87990
|
const { functionDefinitions: functionDefinitions$1, isMaqlFunctionName } = import_dist$7.default;
|
|
87991
87991
|
var CallNotation;
|
|
87992
87992
|
(function(CallNotation) {
|
|
@@ -88091,7 +88091,7 @@ function toMaqlType(type) {
|
|
|
88091
88091
|
}
|
|
88092
88092
|
}
|
|
88093
88093
|
//#endregion
|
|
88094
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
88094
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/types/typeChecking.js
|
|
88095
88095
|
const { AbstractAstVisitor: AbstractAstVisitor$2 } = import_dist$7.default;
|
|
88096
88096
|
var TypedAstNode = class {
|
|
88097
88097
|
type;
|
|
@@ -88316,7 +88316,7 @@ var AstTypeChecker = class extends AbstractAstVisitor$2 {
|
|
|
88316
88316
|
}
|
|
88317
88317
|
};
|
|
88318
88318
|
//#endregion
|
|
88319
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
88319
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/types/typeModel.js
|
|
88320
88320
|
/**
|
|
88321
88321
|
* Simplified logical model which holds MAQL type information
|
|
88322
88322
|
*/
|
|
@@ -88379,7 +88379,7 @@ var DatetimeGranularities = class {
|
|
|
88379
88379
|
}
|
|
88380
88380
|
};
|
|
88381
88381
|
//#endregion
|
|
88382
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
88382
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/diagnostics.js
|
|
88383
88383
|
const { AbstractAstVisitor: AbstractAstVisitor$1, MaqlLexer: MaqlLexer$2, SyntaxErrorListener } = import_dist$7.default;
|
|
88384
88384
|
const errorTokenDescriptions = new Map([
|
|
88385
88385
|
[MaqlLexer$2.UnterminatedString, {
|
|
@@ -88497,7 +88497,7 @@ function handleErrorToken(token) {
|
|
|
88497
88497
|
return import_main$1.Diagnostic.create(tokenRange(token), errorDescription.message(token.text), import_main$1.DiagnosticSeverity.Error, errorDescription.code, diagnosticsSource);
|
|
88498
88498
|
}
|
|
88499
88499
|
//#endregion
|
|
88500
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
88500
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/completions/functionDescriptions.js
|
|
88501
88501
|
const { MaqlParser: MaqlParser$3, functionDefinitions } = import_dist$7.default;
|
|
88502
88502
|
/**
|
|
88503
88503
|
* Tags for functions to resolve correct documentation
|
|
@@ -88592,7 +88592,7 @@ function labelArgs(args, prefix = "(", suffix = ")", separator = ", ") {
|
|
|
88592
88592
|
return prefix + args.join(separator) + suffix;
|
|
88593
88593
|
}
|
|
88594
88594
|
//#endregion
|
|
88595
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
88595
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/completions/descriptions.js
|
|
88596
88596
|
const { MaqlParser: MaqlParser$2 } = import_dist$7.default;
|
|
88597
88597
|
/**
|
|
88598
88598
|
* Maps concepts from MAQL to completionItemKind values
|
|
@@ -88865,7 +88865,7 @@ function objectDesc(type, id = void 0, detail = void 0, resolveTag = void 0, rul
|
|
|
88865
88865
|
};
|
|
88866
88866
|
}
|
|
88867
88867
|
//#endregion
|
|
88868
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
88868
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/completions/findContext.js
|
|
88869
88869
|
const { AbstractAstVisitor, MaqlParser: MaqlParser$1, positionInRange } = import_dist$7.default;
|
|
88870
88870
|
function findContext(metric, caretPosition, offset) {
|
|
88871
88871
|
const finder = new AstContextFinder(caretPosition);
|
|
@@ -89013,7 +89013,7 @@ function isFinal(token) {
|
|
|
89013
89013
|
return finalTokens.has(token.type);
|
|
89014
89014
|
}
|
|
89015
89015
|
//#endregion
|
|
89016
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89016
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/completions/sort.js
|
|
89017
89017
|
const defaultPrefix = "90__";
|
|
89018
89018
|
const sortPrefixes = {
|
|
89019
89019
|
[Kind.LabelElement]: "00__",
|
|
@@ -89119,7 +89119,7 @@ function adjustSortText(list, context) {
|
|
|
89119
89119
|
return list;
|
|
89120
89120
|
}
|
|
89121
89121
|
//#endregion
|
|
89122
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89122
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/completions/complete.js
|
|
89123
89123
|
const { MaqlLexer: MaqlLexer$1, MaqlParser, escapeString } = import_dist$7.default;
|
|
89124
89124
|
const [tokenCompletions, ruleCompletions] = getTokenAndRuleCompletions(descriptions);
|
|
89125
89125
|
async function resolve$5(item, docs) {
|
|
@@ -89354,7 +89354,7 @@ function getTokenAndRuleCompletions(descriptions) {
|
|
|
89354
89354
|
return [tokenDescriptions, ruleDescriptions];
|
|
89355
89355
|
}
|
|
89356
89356
|
//#endregion
|
|
89357
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89357
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/metadata/model.js
|
|
89358
89358
|
function isITigerAttribute(object) {
|
|
89359
89359
|
return object.tigerType === "attribute";
|
|
89360
89360
|
}
|
|
@@ -89462,7 +89462,7 @@ var LdmObjects = class LdmObjects {
|
|
|
89462
89462
|
}
|
|
89463
89463
|
};
|
|
89464
89464
|
//#endregion
|
|
89465
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89465
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/decorations.js
|
|
89466
89466
|
function decorate(query, ldmObjects) {
|
|
89467
89467
|
const metric = new MaqlMetric(query);
|
|
89468
89468
|
return ldmObjects ? decorateBusinessNames(metric, ldmObjects) : [];
|
|
@@ -89492,7 +89492,7 @@ function createDecoration(range, label, type) {
|
|
|
89492
89492
|
};
|
|
89493
89493
|
}
|
|
89494
89494
|
//#endregion
|
|
89495
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89495
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/approximate_count.js
|
|
89496
89496
|
const content$65 = `# APPROXIMATE_COUNT
|
|
89497
89497
|
Use APPROXIMATE_COUNT to return the approximate number of unique values for an attribute. Because the returned value is a statistical estimate and not an exact figure, this function can increase the processing speed when analyzing large datasets. You can use APPROXIMATE_COUNT anywhere you can use COUNT. The smaller the amount of data to process, the more likely that the returned results of APPROXIMATE_COUNT will match the results of COUNT.
|
|
89498
89498
|
|
|
@@ -89554,7 +89554,7 @@ can also use an attribute from the \`Purchase Date\` dataset in the USING clause
|
|
|
89554
89554
|
the context because the \`Sales\` dataset has no relationships to \`Purchase Date\`:
|
|
89555
89555
|
\`SELECT COUNT({label/inventory.productid}) USING {label/purchasedate.year}\``;
|
|
89556
89556
|
//#endregion
|
|
89557
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89557
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/avg.js
|
|
89558
89558
|
const content$64 = `# AVG
|
|
89559
89559
|
The AVG function returns the average value of all numbers in the set (e.g., Salary paid). Null values are ignored.
|
|
89560
89560
|
|
|
@@ -89574,7 +89574,7 @@ together and dividing by the number of payment transactions:
|
|
|
89574
89574
|
SELECT AVG({fact/payment})
|
|
89575
89575
|
\`\`\``;
|
|
89576
89576
|
//#endregion
|
|
89577
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89577
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/count.js
|
|
89578
89578
|
const content$63 = `# COUNT
|
|
89579
89579
|
Use COUNT to return the number of unique values for an attribute or the number of dataset records.
|
|
89580
89580
|
- For large amounts of data where complete accuracy is not a priority, consider using APPROXIMATE_COUNT to increase the processing speed. APPROXIMATE_COUNT is available only for workspaces that use [Vertica](https://www.gooddata.com/developers/cloud-native/doc/hosted/connect-data/create-data-sources/vertica/) as a data source.
|
|
@@ -89647,7 +89647,7 @@ can also use an attribute from the \`Purchase Date\` dataset in the USING clause
|
|
|
89647
89647
|
the context because the \`Sales\` dataset has no relationships to \`Purchase Date\`:
|
|
89648
89648
|
\`SELECT COUNT({label/inventory.productid}) USING {label/purchasedate.year}\``;
|
|
89649
89649
|
//#endregion
|
|
89650
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89650
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/first.js
|
|
89651
89651
|
const content$62 = `# FIRST_VALUE
|
|
89652
89652
|
The \`FIRST_VALUE\` function returns the first value of a sequence.
|
|
89653
89653
|
|
|
@@ -89689,7 +89689,7 @@ SELECT FIRST_VALUE(SUM({fact/snapshot_value})) ORDER BY {attribute/date.day}
|
|
|
89689
89689
|
|
|
89690
89690
|
For a more complex example, see also [LAST_VALUE](https://www.gooddata.com/developers/cloud-native/doc/hosted/create-metrics/maql/aggregation/last/).`;
|
|
89691
89691
|
//#endregion
|
|
89692
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89692
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/last.js
|
|
89693
89693
|
const content$61 = `# LAST_VALUE
|
|
89694
89694
|
The \`LAST_VALUE\` function returns the last value of a sequence.
|
|
89695
89695
|
|
|
@@ -89759,7 +89759,7 @@ The result may look as follows:
|
|
|
89759
89759
|
|2023-02|14,000|12,000|+16.7%|
|
|
89760
89760
|
|2023-03|15,000|12,000|+25%|`;
|
|
89761
89761
|
//#endregion
|
|
89762
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89762
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/max.js
|
|
89763
89763
|
const content$60 = `# MAX
|
|
89764
89764
|
## Metrics
|
|
89765
89765
|
|
|
@@ -89821,7 +89821,7 @@ WHERE {attribute/snapshot_date.day} =
|
|
|
89821
89821
|
(SELECT MAX({attribute/snapshot_date.day},{dataset/fact_dataset}) BY ALL OTHER)
|
|
89822
89822
|
\`\`\``;
|
|
89823
89823
|
//#endregion
|
|
89824
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89824
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/median.js
|
|
89825
89825
|
const content$59 = `# MEDIAN
|
|
89826
89826
|
The MEDIAN function counts the statistical median - an order statistic
|
|
89827
89827
|
that gives the middle value of a sample. If the middle falls between two
|
|
@@ -89847,7 +89847,7 @@ SELECT MEDIAN({fact/cost}) BY ALL OTHER
|
|
|
89847
89847
|
SELECT MEDIAN({metric/payment}) BY {attribute/customer}
|
|
89848
89848
|
\`\`\``;
|
|
89849
89849
|
//#endregion
|
|
89850
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89850
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/min.js
|
|
89851
89851
|
const content$58 = `# MIN
|
|
89852
89852
|
## Metrics
|
|
89853
89853
|
|
|
@@ -89911,7 +89911,7 @@ WHERE {attribute/snapshot_date.day} =
|
|
|
89911
89911
|
(SELECT MIN({attribute/snapshot_date.day},{dataset/fact_dataset}) BY ALL OTHER)
|
|
89912
89912
|
\`\`\``;
|
|
89913
89913
|
//#endregion
|
|
89914
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89914
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/aggregation/sum.js
|
|
89915
89915
|
const content$57 = `# SUM
|
|
89916
89916
|
The SUM function returns a sum of all numbers in the set (e.g., Salary
|
|
89917
89917
|
Paid).
|
|
@@ -89932,7 +89932,7 @@ adding revenue earned from all individual sales transactions:
|
|
|
89932
89932
|
SELECT SUM({fact/sales})
|
|
89933
89933
|
\`\`\``;
|
|
89934
89934
|
//#endregion
|
|
89935
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
89935
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/conditionals/case.js
|
|
89936
89936
|
const content$56 = `# CASE
|
|
89937
89937
|
CASE is a conditional statement that performs logical tests on a series
|
|
89938
89938
|
of conditions and returns values when a condition is met. The CASE
|
|
@@ -90006,7 +90006,7 @@ inside the SUM aggregation instead:
|
|
|
90006
90006
|
SELECT SUM(SELECT CASE WHEN {attribute/customer_state} IN ("AR", "NY") THEN {fact/price} ELSE {fact/price} * {fact/quantity} END)
|
|
90007
90007
|
\`\`\``;
|
|
90008
90008
|
//#endregion
|
|
90009
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90009
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/conditionals/if-then-else.js
|
|
90010
90010
|
const content$55 = `# IF THEN ELSE
|
|
90011
90011
|
IF THEN ELSE construct is a simplified version of CASE statement:
|
|
90012
90012
|
|
|
@@ -90036,7 +90036,7 @@ SELECT IF SUM({fact/duration}) - AVG({fact/duration}) > 2000 THEN 0 ELSE 1 END
|
|
|
90036
90036
|
SELECT IF AVG({fact/probability}) > 0.5 THEN SUM({fact/amount}) * 10 ELSE SUM({fact/amount}) / 10 END
|
|
90037
90037
|
\`\`\``;
|
|
90038
90038
|
//#endregion
|
|
90039
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90039
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/conditionals/ifnull.js
|
|
90040
90040
|
const content$54 = `# IFNULL
|
|
90041
90041
|
IFNULL statement allows you to control replacement of missing values that are returned by an expression.
|
|
90042
90042
|
|
|
@@ -90133,7 +90133,7 @@ SELECT IFNULL({metric/no_of_payments},0) - IFNULL({metric/no_of_refunds},0)
|
|
|
90133
90133
|
\`\`\`
|
|
90134
90134
|
If a refund was not processed for the day, the calculation can still be performed.`;
|
|
90135
90135
|
//#endregion
|
|
90136
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90136
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/filtering-with-ranking-filters.js
|
|
90137
90137
|
const content$53 = `# Using Ranking Filters
|
|
90138
90138
|
In this article, you will learn how to use the MAQL's TOP and BOTTOM ranking filters.
|
|
90139
90139
|
|
|
@@ -90205,7 +90205,7 @@ WHERE (SELECT (SELECT {metric/revenue} WHERE TOP(10%) OF ({metric/revenue})) BY
|
|
|
90205
90205
|
We will leave the BOTTOM keyword up to the kind reader as homework and
|
|
90206
90206
|
focus on yet another feature of the ranking metrics.`;
|
|
90207
90207
|
//#endregion
|
|
90208
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90208
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/filtering-with-the-having-clause.js
|
|
90209
90209
|
const content$52 = `# Filtering with the HAVING Clause
|
|
90210
90210
|
Using the HAVING filter enables you to apply filtration to a metric
|
|
90211
90211
|
after all containing metrics and aggregation functions have been
|
|
@@ -90271,7 +90271,7 @@ The last MAQL statement above returns values for amount for the quarter
|
|
|
90271
90271
|
before this one, displaying only results from 2014. No parent filters
|
|
90272
90272
|
are applied.`;
|
|
90273
90273
|
//#endregion
|
|
90274
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90274
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/filtering-with-the-like-clause.js
|
|
90275
90275
|
const content$51 = `# Filtering with the LIKE Clause
|
|
90276
90276
|
The LIKE clause is a filtering condition designed to search
|
|
90277
90277
|
attribute-label string values to match a specified pattern.
|
|
@@ -90308,7 +90308,7 @@ SELECT SUM({metric/revenue}) WHERE {label/product_name} LIKE "%red%"
|
|
|
90308
90308
|
The revenue comes from products containing \"red\" in the Product Name
|
|
90309
90309
|
label of attribute Product.`;
|
|
90310
90310
|
//#endregion
|
|
90311
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90311
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/filtering-with-the-where-clause.js
|
|
90312
90312
|
const content$50 = `# Filtering with the WHERE Clause
|
|
90313
90313
|
After you have aggregated a fact to form the foundations of a metric,
|
|
90314
90314
|
you can use MAQL syntax to add filters to your metric definition.
|
|
@@ -90345,7 +90345,7 @@ filters:
|
|
|
90345
90345
|
SELECT {metric/revenue} WHERE {label/date.year} = "2006" AND {label/date.month} = "5"
|
|
90346
90346
|
\`\`\``;
|
|
90347
90347
|
//#endregion
|
|
90348
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90348
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-attribute-filters/by-all-in-all-other-dimensions-except-for-attribute.js
|
|
90349
90349
|
const content$49 = `# BY ALL IN ALL OTHER DIMENSIONS EXCEPT FOR attribute
|
|
90350
90350
|
This keyword clause overrides all attributes except for those attributes
|
|
90351
90351
|
within the dimension of the attribute that is specified.
|
|
@@ -90367,7 +90367,7 @@ SELECT {metric/payment} BY ALL IN ALL OTHER DIMENSIONS EXCEPT FOR {attribute/dat
|
|
|
90367
90367
|
|
|
90368
90368
|
In this example, Payment could be broken down by any date in the Date(Opportunity Closed) date dimension, such as \`Month/Year(Opportunity Closed)\`, \`Quarter/Year(Opportunity Closed)\`, or \`Year(Opportunity Closed)\`.`;
|
|
90369
90369
|
//#endregion
|
|
90370
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90370
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-attribute-filters/by-all-in-all-other-dimensions.js
|
|
90371
90371
|
const content$48 = `# BY ALL IN ALL OTHER DIMENSIONS
|
|
90372
90372
|
This clause overrides all attributes - keeping the metric from being
|
|
90373
90373
|
broken down at all. As a result, the associated metric will remain
|
|
@@ -90395,7 +90395,7 @@ down with a Month attribute. The above metric would show the percent
|
|
|
90395
90395
|
share of each month's payments relative to the sum of all payments
|
|
90396
90396
|
across all time and all other dimensions.`;
|
|
90397
90397
|
//#endregion
|
|
90398
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90398
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-attribute-filters/by-all.js
|
|
90399
90399
|
const content$47 = `# BY ALL
|
|
90400
90400
|
The BY ALL keyword is used to override a specified attribute dimension.
|
|
90401
90401
|
|
|
@@ -90460,7 +90460,7 @@ and industry attribute dimensions.
|
|
|
90460
90460
|
|
|
90461
90461
|
`;
|
|
90462
90462
|
//#endregion
|
|
90463
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90463
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-attribute-filters/by-attribute-all-in-all-other-dimensions.js
|
|
90464
90464
|
const content$46 = `# BY attribute ALL IN ALL OTHER DIMENSIONS
|
|
90465
90465
|
The first part of this keyword serves a similar role as the BY
|
|
90466
90466
|
statement, defining an aggregation floor at the granularity level of the
|
|
@@ -90483,7 +90483,7 @@ SELECT metric BY attribute ALL IN ALL OTHER DIMENSIONS
|
|
|
90483
90483
|
SELECT SUM(metric/resolution_time) BY {label/date.quarter} ALL IN ALL OTHER DIMENSIONS
|
|
90484
90484
|
\`\`\``;
|
|
90485
90485
|
//#endregion
|
|
90486
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90486
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-attribute-filters/by.js
|
|
90487
90487
|
const content$45 = `# BY
|
|
90488
90488
|
The BY keyword is used to set a minimum level of granularity by which a
|
|
90489
90489
|
metric can be broken down. BY effectively sets an **aggregation floor**,
|
|
@@ -90569,7 +90569,7 @@ The \`order_amount\` metric multiplies price by quantity.
|
|
|
90569
90569
|
|
|
90570
90570
|
The metric described above calculates the average of \`order_amount\` per each record of the \`order_lines\` dataset.`;
|
|
90571
90571
|
//#endregion
|
|
90572
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90572
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-parent/with-parent-except.js
|
|
90573
90573
|
const content$44 = `Includes all parent filters, except for any filters specified as a
|
|
90574
90574
|
comma-separated list of attributes.
|
|
90575
90575
|
|
|
@@ -90607,7 +90607,7 @@ SELECT ... WITH PARENT FILTER EXCEPT Attribute1,...
|
|
|
90607
90607
|
SELECT ... WITH PF EXCEPT Attribute1,...
|
|
90608
90608
|
\`\`\``;
|
|
90609
90609
|
//#endregion
|
|
90610
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90610
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-parent/with-parent-filter.js
|
|
90611
90611
|
const content$43 = `Applies all parent filters to the metric. All parent filters specified
|
|
90612
90612
|
in visualizations, dashboards, and any metrics in which this metric is nested
|
|
90613
90613
|
are applied to the calculation.
|
|
@@ -90650,7 +90650,7 @@ SELECT ... WITH PARENT FILTER
|
|
|
90650
90650
|
SELECT ... WITH PF
|
|
90651
90651
|
\`\`\``;
|
|
90652
90652
|
//#endregion
|
|
90653
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90653
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-parent/without-parent-except.js
|
|
90654
90654
|
const content$42 = `Remove parent filters, except for any filters specified as a comma-separated list of attributes.
|
|
90655
90655
|
|
|
90656
90656
|
This clause can be shortened to WITHOUT PF EXCEPT.
|
|
@@ -90745,7 +90745,7 @@ version in the second row.
|
|
|
90745
90745
|
- M2 is filtered by group, date.
|
|
90746
90746
|
- M1 is filtered by date and the numeric range in the \`WHERE\` part.`;
|
|
90747
90747
|
//#endregion
|
|
90748
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90748
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/filters/overriding-parent/without-parent-filter.js
|
|
90749
90749
|
const content$41 = `Removes parent filters from being applied to the metric. All parent
|
|
90750
90750
|
filters specified in visualization, dashboards, and any metrics in which this
|
|
90751
90751
|
metric is nested are ignored.
|
|
@@ -90779,7 +90779,7 @@ SELECT ... WITHOUT PARENT FILTER
|
|
|
90779
90779
|
SELECT ... WITHOUT PF
|
|
90780
90780
|
\`\`\``;
|
|
90781
90781
|
//#endregion
|
|
90782
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90782
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/logical-operators/and.js
|
|
90783
90783
|
const content$40 = `# AND
|
|
90784
90784
|
AND logical operator works in the following way:
|
|
90785
90785
|
|
|
@@ -90817,7 +90817,7 @@ SELECT SUM({metric/payment}) WHERE ({label/date.year} = "2006" OR {label/date.mo
|
|
|
90817
90817
|
Payment values that come from 2006 or the first four months of 2007 but
|
|
90818
90818
|
are less than 10,000 will be excluded.`;
|
|
90819
90819
|
//#endregion
|
|
90820
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90820
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/logical-operators/not.js
|
|
90821
90821
|
const content$39 = `# NOT
|
|
90822
90822
|
NOT is a logical operator that negates the filter it precedes.
|
|
90823
90823
|
|
|
@@ -90830,7 +90830,7 @@ specified by the filter is excluded from the computation.
|
|
|
90830
90830
|
SELECT {metric/profit} WHERE NOT ({label/date_ordered.year} = "2006" AND {label/date_ordered.month} = "5")
|
|
90831
90831
|
\`\`\``;
|
|
90832
90832
|
//#endregion
|
|
90833
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90833
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/logical-operators/or.js
|
|
90834
90834
|
const content$38 = `# OR
|
|
90835
90835
|
OR logical operator works in the following way:
|
|
90836
90836
|
|
|
@@ -90853,7 +90853,7 @@ year 2006 and the first four months of 2007:
|
|
|
90853
90853
|
SELECT SUM({metric/payment}) WHERE {label/date_ordered.year} = "2006" OR {label/date_ordered.month} IN ("2007-01", "2007-02", "2007-03", "2007-04")
|
|
90854
90854
|
\`\`\``;
|
|
90855
90855
|
//#endregion
|
|
90856
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90856
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/maql-and-multidimensionality.js
|
|
90857
90857
|
const content$37 = `# MAQL and Multidimensionality
|
|
90858
90858
|
Multidimensionality is a fundamental principle of GoodData's MAQL (Multi-Dimension Analytical Query Language).
|
|
90859
90859
|
|
|
@@ -90913,7 +90913,7 @@ The dimensionality of the main (result) metric is different from dimensionality
|
|
|
90913
90913
|
|Amount Sold 25+ | Product |Total sales of each product with more than 25 sold items.|
|
|
90914
90914
|
|Amount Sold 25+ | Product, Year |Sales of each product and year for products with more than 25 sold items.|`;
|
|
90915
90915
|
//#endregion
|
|
90916
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90916
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/abs.js
|
|
90917
90917
|
const content$36 = `# ABS
|
|
90918
90918
|
The absolute value function (ABS) returns an absolute value of a number
|
|
90919
90919
|
(e.g., Revenue) as a positive number:
|
|
@@ -90937,7 +90937,7 @@ SELECT ABS(10) returns the value "10"
|
|
|
90937
90937
|
SELECT ABS(({metric/total_amount})-(SELECT {metric/total_amount} WITHOUT PF))
|
|
90938
90938
|
\`\`\``;
|
|
90939
90939
|
//#endregion
|
|
90940
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90940
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/arithmetic-operations.js
|
|
90941
90941
|
const content$35 = `# Arithmetic Operations
|
|
90942
90942
|
Predefined metrics can be manipulated with any basic arithmetic
|
|
90943
90943
|
operation: addition (+), subtraction (-), multiplication (*), and
|
|
@@ -90967,7 +90967,7 @@ SELECT {metric/profit} * 0.03
|
|
|
90967
90967
|
SELECT {metric/new_revenue} / {metric/revenue_last_year}
|
|
90968
90968
|
\`\`\``;
|
|
90969
90969
|
//#endregion
|
|
90970
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90970
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/ceiling.js
|
|
90971
90971
|
const content$34 = `# CEILING
|
|
90972
90972
|
The CEILING function rounds an input value to the nearest integer that
|
|
90973
90973
|
is greater than it.
|
|
@@ -90989,7 +90989,7 @@ SELECT CEILING(12.2) = 13
|
|
|
90989
90989
|
SELECT CEILING(12.7) = 13
|
|
90990
90990
|
\`\`\``;
|
|
90991
90991
|
//#endregion
|
|
90992
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
90992
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/exp.js
|
|
90993
90993
|
const content$33 = `# EXP
|
|
90994
90994
|
The exponential function EXP returns *e* raised to the power of a number
|
|
90995
90995
|
(e.g., Annual rate).
|
|
@@ -91017,7 +91017,7 @@ SELECT EXP(1.5)
|
|
|
91017
91017
|
SELECT EXP(SUM({fact/amount}))
|
|
91018
91018
|
\`\`\``;
|
|
91019
91019
|
//#endregion
|
|
91020
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91020
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/floor.js
|
|
91021
91021
|
const content$32 = `# FLOOR
|
|
91022
91022
|
The FLOOR function rounds an input value to the nearest integer that is
|
|
91023
91023
|
less than it.
|
|
@@ -91039,7 +91039,7 @@ SELECT FLOOR(12.2) = 12
|
|
|
91039
91039
|
SELECT FLOOR(12.7) = 12
|
|
91040
91040
|
\`\`\``;
|
|
91041
91041
|
//#endregion
|
|
91042
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91042
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/greatest.js
|
|
91043
91043
|
const content$31 = `# GREATEST
|
|
91044
91044
|
The GREATEST function identifies the highest value from a selection of
|
|
91045
91045
|
facts or metrics within one row.
|
|
@@ -91053,7 +91053,7 @@ SELECT GREATEST(metric, metric)
|
|
|
91053
91053
|
SELECT GREATEST(fact, metric, metric, fact)
|
|
91054
91054
|
\`\`\``;
|
|
91055
91055
|
//#endregion
|
|
91056
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91056
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/least.js
|
|
91057
91057
|
const content$30 = `# LEAST
|
|
91058
91058
|
The LEAST function identifies the lowest value from a selection of facts
|
|
91059
91059
|
or metrics within one row.
|
|
@@ -91067,7 +91067,7 @@ SELECT LEAST(metric, metric)
|
|
|
91067
91067
|
SELECT LEAST(fact, metric, metric, fact)
|
|
91068
91068
|
\`\`\``;
|
|
91069
91069
|
//#endregion
|
|
91070
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91070
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/ln.js
|
|
91071
91071
|
const content$29 = `# LN
|
|
91072
91072
|
The LN function returns the natural logarithm of a number with base e,
|
|
91073
91073
|
the constant equal to 2.71828182845904. The LN function returns NULL if
|
|
@@ -91101,7 +91101,7 @@ SELECT LN(1.5)
|
|
|
91101
91101
|
SELECT LN(SUM({fact/amount}))
|
|
91102
91102
|
\`\`\``;
|
|
91103
91103
|
//#endregion
|
|
91104
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91104
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/log.js
|
|
91105
91105
|
const content$28 = `# LOG
|
|
91106
91106
|
The LOG function returns the logarithm of a number for the given base
|
|
91107
91107
|
specified in second parameter of the LOG function. If the base value is
|
|
@@ -91131,7 +91131,7 @@ SELECT LOG(SUM({fact/amount}), 2)
|
|
|
91131
91131
|
SELECT LOG({metric/amount_max} * 400, {metric/amount_Max})
|
|
91132
91132
|
\`\`\``;
|
|
91133
91133
|
//#endregion
|
|
91134
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91134
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/power.js
|
|
91135
91135
|
const content$27 = `# POWER
|
|
91136
91136
|
The POWER function returns a number raised to the base specified as the
|
|
91137
91137
|
second parameter of the POWER function (e.g., Interest rate, Revenue).
|
|
@@ -91165,7 +91165,7 @@ SELECT POWER(1, SUM({fact/amount}))
|
|
|
91165
91165
|
SELECT POWER({metric/total_amount} * (1/2), {metric/total_amount})
|
|
91166
91166
|
\`\`\``;
|
|
91167
91167
|
//#endregion
|
|
91168
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91168
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/round.js
|
|
91169
91169
|
const content$26 = `# ROUND
|
|
91170
91170
|
The ROUND() function rounds a fact or metric to the number of decimal
|
|
91171
91171
|
places specified in the second parameter. If the second parameter is not
|
|
@@ -91200,7 +91200,7 @@ SELECT ROUND(12.257,2) = 12.26
|
|
|
91200
91200
|
SELECT ROUND (12.257,-1) = 10
|
|
91201
91201
|
\`\`\``;
|
|
91202
91202
|
//#endregion
|
|
91203
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91203
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/sign.js
|
|
91204
91204
|
const content$25 = `# SIGN
|
|
91205
91205
|
The signum (SIGN) function returns a number or metric input as one of
|
|
91206
91206
|
the following three values:
|
|
@@ -91231,7 +91231,7 @@ SELECT SIGN(3) returns the value 1
|
|
|
91231
91231
|
SELECT SIGN(0) returns the value 0
|
|
91232
91232
|
\`\`\``;
|
|
91233
91233
|
//#endregion
|
|
91234
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91234
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/sqrt.js
|
|
91235
91235
|
const content$24 = `# SQRT
|
|
91236
91236
|
The square root function (SQRT) returns a square root of a number (e.g.,
|
|
91237
91237
|
Revenue). If the number is negative, SQRT returns NULL.
|
|
@@ -91264,7 +91264,7 @@ SELECT SQRT(SELECT SUM({fact/sales}))
|
|
|
91264
91264
|
|
|
91265
91265
|
returns the square root of a Total Sales metric.`;
|
|
91266
91266
|
//#endregion
|
|
91267
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91267
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/math/trunc.js
|
|
91268
91268
|
const content$23 = `# TRUNC
|
|
91269
91269
|
The TRUNC functions truncates a number based on the number of decimal
|
|
91270
91270
|
places specified in the second parameter.
|
|
@@ -91301,7 +91301,7 @@ SELECT TRUNC(12.257,2) = 12.25
|
|
|
91301
91301
|
SELECT TRUNC(1255.257,-2) = 1200
|
|
91302
91302
|
\`\`\``;
|
|
91303
91303
|
//#endregion
|
|
91304
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91304
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/ranking/percentile.js
|
|
91305
91305
|
const content$22 = `# PERCENTILE
|
|
91306
91306
|
The PERCENTILE( ) function returns the specified percentile out of a set of values. This could be useful for establishing a threshold of
|
|
91307
91307
|
acceptance, such as for candidates who score above the 90th percentile
|
|
@@ -91359,7 +91359,7 @@ SELECT PERCENTILE({metric/Amount}, 0.75)
|
|
|
91359
91359
|
SELECT PERCENTILE({metric/Amount}, 75%)
|
|
91360
91360
|
\`\`\``;
|
|
91361
91361
|
//#endregion
|
|
91362
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91362
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/ranking/rank-variations.js
|
|
91363
91363
|
const content$21 = `# Rank Variations
|
|
91364
91364
|
MAQL includes the following ranking functions that sequentially rank all values in a visualization.
|
|
91365
91365
|
|
|
@@ -91450,7 +91450,7 @@ The following statements clarify how they differ.
|
|
|
91450
91450
|
|
|
91451
91451
|
`;
|
|
91452
91452
|
//#endregion
|
|
91453
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91453
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/ranking/where-top-or-bottom-in.js
|
|
91454
91454
|
const content$20 = `# TOP or BOTTOM(n) IN
|
|
91455
91455
|
WHERE TOP|BOTTOM IN is a ranking filter. It limits the inputs into a
|
|
91456
91456
|
metric's computations to those values that are the top or bottom *n*
|
|
@@ -91504,7 +91504,7 @@ keyword).
|
|
|
91504
91504
|
|
|
91505
91505
|
See also [TOP or BOTTOM(n) OF](https://www.gooddata.com/developers/cloud-native/doc/hosted/create-metrics/maql/ranking/where-top-or-bottom-of/).`;
|
|
91506
91506
|
//#endregion
|
|
91507
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91507
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/ranking/where-top-or-bottom-of.js
|
|
91508
91508
|
const content$19 = `# TOP or BOTTOM(n) OF
|
|
91509
91509
|
Similar to [WHERE TOP or BOTTOM(n) IN](https://www.gooddata.com/developers/cloud-native/doc/hosted/create-metrics/maql/ranking/where-top-or-bottom-in/), WHERE TOP or
|
|
91510
91510
|
BOTTOM OF can serve as a filter that limits the values included in the
|
|
@@ -91534,7 +91534,7 @@ SELECT metric1 WHERE [TOP|BOTTOM](n) OF ( metric2 , ...) WITHIN ( ... )
|
|
|
91534
91534
|
SELECT {metric/amount} WHERE TOP(5%) OF ({metric/Amount}) AND {label/product} = "Explorer"
|
|
91535
91535
|
\`\`\``;
|
|
91536
91536
|
//#endregion
|
|
91537
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91537
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/ranking/within-clause.js
|
|
91538
91538
|
const content$18 = `# WITHIN Clause
|
|
91539
91539
|
You can add variations of the WITHIN clause to any supported [Rank Variations](https://www.gooddata.com/developers/cloud-native/doc/hosted/create-metrics/maql/ranking/rank-variations/). This syntax lets you rank
|
|
91540
91540
|
values within subgroups defined by a visualization's attribute values.
|
|
@@ -91636,7 +91636,7 @@ the PERCENT_RANK function. That combination would return the percentage
|
|
|
91636
91636
|
of metric values that are less than the current value, which is
|
|
91637
91637
|
necessarily zero in a single-value \"group.\"`;
|
|
91638
91638
|
//#endregion
|
|
91639
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91639
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/relational-operators.js
|
|
91640
91640
|
const content$17 = `# Relational Operators
|
|
91641
91641
|
Relational operators can be used with facts, metrics, or date labels to
|
|
91642
91642
|
define filter conditions on a metric.
|
|
@@ -91687,7 +91687,7 @@ SELECT {metric/payment} WHERE {label/region} NOT IN ("America", "EU", NULL)
|
|
|
91687
91687
|
\`\`\`
|
|
91688
91688
|
>A comparison of attribute values with NULL using MAQL relational operators translates to semantics of \`\`IS NULL\`\`/ \`\`IS NOT NULL\`\` operators in SQL.`;
|
|
91689
91689
|
//#endregion
|
|
91690
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91690
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/runing-totals/rolling-window.js
|
|
91691
91691
|
const content$16 = `# Rolling Window
|
|
91692
91692
|
Use the ROWS BETWEEN keyword to specify a rolling window over which
|
|
91693
91693
|
running total functions (for example RUNAVG) are computed.
|
|
@@ -91759,7 +91759,7 @@ Define everything before the current month:
|
|
|
91759
91759
|
SELECT RUNAVG({metric/m}) WITHIN {attribute/year} ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING
|
|
91760
91760
|
\`\`\``;
|
|
91761
91761
|
//#endregion
|
|
91762
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91762
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/runing-totals/running-total-statistical-functions.js
|
|
91763
91763
|
const content$15 = `# Running Total Statistical Functions
|
|
91764
91764
|
Running Total Statistical Functions calculate the standard deviation or
|
|
91765
91765
|
variance using all values up to the current date for a fact or metric.
|
|
@@ -91814,7 +91814,7 @@ SELECT RUNVARP({metric/returns}) WHERE {metric/amount} > 500000
|
|
|
91814
91814
|
SELECT RUNSTDEV({metric/opportunities}) WITHIN ({label/date_ordered.quarter_year})
|
|
91815
91815
|
\`\`\``;
|
|
91816
91816
|
//#endregion
|
|
91817
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91817
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/runing-totals/running-totals-for-core-functions.js
|
|
91818
91818
|
const content$14 = `# Running Totals for Core Functions
|
|
91819
91819
|
Running Totals for Core Functions take the running sum, average,
|
|
91820
91820
|
minimum, or maximum of a project fact or metric. In a table broken down
|
|
@@ -91852,7 +91852,7 @@ SELECT RUNMAX({fact/opportunity}) BY {label/date.quarter_year}
|
|
|
91852
91852
|
SELECT RUNMAX({fact/sales}) WITHIN ({label/date.year}) WITHOUT PARENT FILTER
|
|
91853
91853
|
\`\`\``;
|
|
91854
91854
|
//#endregion
|
|
91855
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91855
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/statistic/correl.js
|
|
91856
91856
|
const content$13 = `# CORREL
|
|
91857
91857
|
Correlation indicates the degree of association between two sets of
|
|
91858
91858
|
values. The CORREL function returns correlation coefficient that varies
|
|
@@ -91900,7 +91900,7 @@ SELECT CORREL({metric/production_volume}, {metric/rate_of_defects})
|
|
|
91900
91900
|
SELECT CORREL({metric/gross_tonnage}, {metric/gross_profit})
|
|
91901
91901
|
\`\`\``;
|
|
91902
91902
|
//#endregion
|
|
91903
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91903
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/statistic/covariance-functions.js
|
|
91904
91904
|
const content$12 = `# Covariance Functions
|
|
91905
91905
|
Covariance functions return the statistical covariance - how much two
|
|
91906
91906
|
sets of values change together based on a sample of the population
|
|
@@ -91947,7 +91947,7 @@ SELECT COVAR({metric/total_cost_of_inputs}, {metric/gross_margin})
|
|
|
91947
91947
|
SELECT COVARP({fact/height}, {fact/height})
|
|
91948
91948
|
\`\`\``;
|
|
91949
91949
|
//#endregion
|
|
91950
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91950
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/statistic/least-squares-functions.js
|
|
91951
91951
|
const content$11 = `# Least-Squares Functions
|
|
91952
91952
|
The **least-squares method** of linear regression attempts to fit a
|
|
91953
91953
|
linear regression trend line as closely as possible. This line has the
|
|
@@ -91992,7 +91992,7 @@ SELECT RSQ(fact1, fact2)
|
|
|
91992
91992
|
SELECT RSQ({metric/count_of_defects}, {metric/production_volume})
|
|
91993
91993
|
\`\`\``;
|
|
91994
91994
|
//#endregion
|
|
91995
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
91995
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/statistic/standard-deviation-functions.js
|
|
91996
91996
|
const content$10 = `# Standard Deviation Functions
|
|
91997
91997
|
Standard deviation function return the statistical standard deviation of
|
|
91998
91998
|
all values in the set based on a sample of the population (STDEV), or
|
|
@@ -92081,7 +92081,7 @@ individual transactions (X axis) and where they fall within bands of
|
|
|
92081
92081
|
|
|
92082
92082
|
`;
|
|
92083
92083
|
//#endregion
|
|
92084
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92084
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/statistic/variance-functions.js
|
|
92085
92085
|
const content$9 = `# Variance Functions
|
|
92086
92086
|
Returns the statistical variance - how far a set of values is spread out based on a sample of the population (VAR), or based on a biased population (VARP). Variance is non-negative, zero indicates that all values are identical.
|
|
92087
92087
|
|
|
@@ -92136,7 +92136,7 @@ SELECT VAR({metric/internal_rate_of_return})
|
|
|
92136
92136
|
SELECT VARP({metric/gross_weight})
|
|
92137
92137
|
\`\`\``;
|
|
92138
92138
|
//#endregion
|
|
92139
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92139
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time-arithmetics/datetime-add.js
|
|
92140
92140
|
const content$8 = `# DATETIME_ADD
|
|
92141
92141
|
The \`DATETIME_ADD\` function adds a specified amount of intervals based on the granularity.
|
|
92142
92142
|
|
|
@@ -92190,7 +92190,7 @@ Return the sum of the shipping prices in the 7 days before the last returned loa
|
|
|
92190
92190
|
SELECT SUM({fact/l_shippingprice}) WHERE {label/l_returned.day} >= DATETIME_ADD(MAX({label/l_returned.day}, {dataset/loan}), -7)
|
|
92191
92191
|
\`\`\``;
|
|
92192
92192
|
//#endregion
|
|
92193
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92193
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time-arithmetics/datetime-diff.js
|
|
92194
92194
|
const content$7 = `# DATETIME_DIFF
|
|
92195
92195
|
The \`DATETIME_DIFF\` function calculates the difference between two timestamps or dates. The resulting number is the difference between the two specified timestamps/dates based on the granularity.
|
|
92196
92196
|
|
|
@@ -92246,7 +92246,7 @@ Filter data where the duration is greater than the specified amount:
|
|
|
92246
92246
|
SELECT COUNT({dataset/item}) WHERE DATETIME_DIFF({label/i_decommisioned.day}, THIS(DAY)) > 10
|
|
92247
92247
|
\`\`\``;
|
|
92248
92248
|
//#endregion
|
|
92249
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92249
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time-macros.js
|
|
92250
92250
|
const content$6 = `# Time Macros
|
|
92251
92251
|
Time macros or time macro functions are \"floating\" references to day, month, week, and other date-related attribute values, relative to the present.
|
|
92252
92252
|
MAQL supports the following time macro functions:
|
|
@@ -92326,7 +92326,7 @@ Example:
|
|
|
92326
92326
|
SELECT {metric/payment} WHERE {attribute/month} = PREVIOUS(Month)
|
|
92327
92327
|
\`\`\``;
|
|
92328
92328
|
//#endregion
|
|
92329
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92329
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time/for-each.js
|
|
92330
92330
|
const content$5 = `# FOR EACH
|
|
92331
92331
|
The **FOR EACH** clause allows you to display all attribute values in your visualization, even if they are missing.
|
|
92332
92332
|
|
|
@@ -92423,7 +92423,7 @@ Other data sources fully support FOR EACH for all attributes.
|
|
|
92423
92423
|
You can create metrics with FOR EACH even if your data source does not support it. If you add such metric to a visualization, Analytical Designer will display an error.
|
|
92424
92424
|
{{% /alert %}}`;
|
|
92425
92425
|
//#endregion
|
|
92426
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92426
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time/for-next-period.js
|
|
92427
92427
|
const content$4 = `# FOR NextPeriod
|
|
92428
92428
|
FOR NextPeriod function allows you to compute a metric for a future time
|
|
92429
92429
|
period the granularity of which is determined contextually by the most
|
|
@@ -92462,7 +92462,7 @@ attribute.
|
|
|
92462
92462
|
|
|
92463
92463
|
`;
|
|
92464
92464
|
//#endregion
|
|
92465
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92465
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time/for-next.js
|
|
92466
92466
|
const content$3 = `# FOR Next
|
|
92467
92467
|
By default, the FOR Next function refers to values from one time period
|
|
92468
92468
|
in the future. This can be customized by adding a second parameter to
|
|
@@ -92490,7 +92490,7 @@ below).
|
|
|
92490
92490
|
SELECT {metric/payment} FOR Next({attribute/quarter},3)
|
|
92491
92491
|
\`\`\``;
|
|
92492
92492
|
//#endregion
|
|
92493
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92493
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time/for-previous-period.js
|
|
92494
92494
|
const content$2 = `# FOR PreviousPeriod
|
|
92495
92495
|
The FOR PreviousPeriod function is similar to FOR Previous functions
|
|
92496
92496
|
unless the adaptable functions adapt to the context of the visualization by
|
|
@@ -92517,7 +92517,7 @@ SELECT {metric/payment} FOR PreviousPeriod({attribute/quarter}, 2)
|
|
|
92517
92517
|
For differences between FOR Previous and FOR PreviousPeriod,
|
|
92518
92518
|
see [Functions For Referring to Past Time Periods](https://www.gooddata.com/developers/cloud-native/doc/hosted/create-metrics/maql/time/functions-for-referring-to-past-time-periods/).`;
|
|
92519
92519
|
//#endregion
|
|
92520
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92520
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time/for-previous.js
|
|
92521
92521
|
const content$1 = `# FOR Previous
|
|
92522
92522
|
By default, the FOR Previous function refers to values from one time
|
|
92523
92523
|
period ago. You can customize FOR Previous by adding a second parameter
|
|
@@ -92548,7 +92548,7 @@ SELECT {metric/revenues} FOR Previous({attribute/quarter} , 3)
|
|
|
92548
92548
|
For differences between FOR Previous and FOR PreviousPeriod,
|
|
92549
92549
|
see [Functions For Referring to Past Time Periods](https://www.gooddata.com/developers/cloud-native/doc/hosted/create-metrics/maql/time/functions-for-referring-to-past-time-periods/).`;
|
|
92550
92550
|
//#endregion
|
|
92551
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92551
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/en/docs/create-metrics/maql/time/functions-for-referring-to-past-time-periods.js
|
|
92552
92552
|
const content = `# Functions For Referring to Past Time Periods
|
|
92553
92553
|
The following MAQL functions allow you to create metrics showing a time
|
|
92554
92554
|
over time comparison (for example, month over month, or quarter over
|
|
@@ -92585,7 +92585,7 @@ specifying the date dimension of interest. This is because workspaces
|
|
|
92585
92585
|
often have multiple date dimensions, such as Date(Lead Created),
|
|
92586
92586
|
Date(MQL Qualified), or Date(Snapshot).`;
|
|
92587
92587
|
//#endregion
|
|
92588
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92588
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/docs/index.js
|
|
92589
92589
|
/**
|
|
92590
92590
|
* IETF BCP 47 language tags for supported locales in documentation
|
|
92591
92591
|
*/
|
|
@@ -92659,7 +92659,7 @@ const docsIndex = { "en-us": {
|
|
|
92659
92659
|
"functions-for-referring-to-past-time-periods": content
|
|
92660
92660
|
} };
|
|
92661
92661
|
//#endregion
|
|
92662
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92662
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/highlight/semanticsHighlight.js
|
|
92663
92663
|
const { AttributeTypeContext, MaqlLexer, NumericTypeContext } = import_dist$7.default;
|
|
92664
92664
|
var TokenTypes;
|
|
92665
92665
|
(function(TokenTypes) {
|
|
@@ -92962,7 +92962,7 @@ var SemanticTokenizer = class {
|
|
|
92962
92962
|
}
|
|
92963
92963
|
};
|
|
92964
92964
|
//#endregion
|
|
92965
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
92965
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/format.js
|
|
92966
92966
|
function format(query, options) {
|
|
92967
92967
|
const metric = new MaqlMetric(query);
|
|
92968
92968
|
return new MaqlFormatter(options, metric).visit(metric.tree);
|
|
@@ -93452,7 +93452,7 @@ function formatTransFunction(func) {
|
|
|
93452
93452
|
}
|
|
93453
93453
|
}
|
|
93454
93454
|
//#endregion
|
|
93455
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
93455
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/highlight/utils.js
|
|
93456
93456
|
function getType$1(typeList, current) {
|
|
93457
93457
|
return typeList.indexOf(current);
|
|
93458
93458
|
}
|
|
@@ -93464,7 +93464,7 @@ function getModifiers(modifiersList, current) {
|
|
|
93464
93464
|
}, 0);
|
|
93465
93465
|
}
|
|
93466
93466
|
//#endregion
|
|
93467
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
93467
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/highlight/convert.js
|
|
93468
93468
|
function convertToSemanticTokens(tokens) {
|
|
93469
93469
|
const builder = new import_main$1.SemanticTokensBuilder();
|
|
93470
93470
|
tokens.forEach(({ position, type, modifiers }) => {
|
|
@@ -93474,7 +93474,7 @@ function convertToSemanticTokens(tokens) {
|
|
|
93474
93474
|
return builder.build();
|
|
93475
93475
|
}
|
|
93476
93476
|
//#endregion
|
|
93477
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
93477
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/hover.js
|
|
93478
93478
|
function hover(query, position, ldmObjects) {
|
|
93479
93479
|
if (!ldmObjects) return null;
|
|
93480
93480
|
const objAtPosition = findAllObjects(new MaqlMetric(query)).find((obj) => {
|
|
@@ -93517,7 +93517,7 @@ function objectContent(object) {
|
|
|
93517
93517
|
return null;
|
|
93518
93518
|
}
|
|
93519
93519
|
//#endregion
|
|
93520
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
93520
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/maqlLanguageService.js
|
|
93521
93521
|
/**
|
|
93522
93522
|
* MAQL Language Service class
|
|
93523
93523
|
* A service to manage the capabilities of the MAQL language server
|
|
@@ -93606,7 +93606,7 @@ var MaqlLanguageService = class {
|
|
|
93606
93606
|
handleMetadataServiceError(_reason) {}
|
|
93607
93607
|
};
|
|
93608
93608
|
//#endregion
|
|
93609
|
-
//#region ../../../common/temp/aac/node_modules/.pnpm
|
|
93609
|
+
//#region ../../../common/temp/aac/node_modules/.pnpm/@gooddata+gdc-maql-language-server@file+..+..+..+libs+gdc-maql-language-server/node_modules/@gooddata/gdc-maql-language-server/esm/renderParameters.js
|
|
93610
93610
|
/**
|
|
93611
93611
|
* Replaces every `{parameter/id}` reference in `maql` with its default value, so the template can be
|
|
93612
93612
|
* previewed as the MAQL that would actually execute. String defaults are rendered as quoted literals
|
|
@@ -161818,7 +161818,7 @@ async function open(state, emitter, file) {
|
|
|
161818
161818
|
//#endregion
|
|
161819
161819
|
//#region ../code/package.json
|
|
161820
161820
|
var name = "@gooddata/code";
|
|
161821
|
-
var version = "0.54.0-alpha.
|
|
161821
|
+
var version = "0.54.0-alpha.5";
|
|
161822
161822
|
//#endregion
|
|
161823
161823
|
//#region ../../../sdk/libs/api-client-tiger/src/axios.ts
|
|
161824
161824
|
/**
|
|
@@ -161840,7 +161840,7 @@ const _CONFIG = {
|
|
|
161840
161840
|
common: {
|
|
161841
161841
|
"X-Requested-With": "XMLHttpRequest",
|
|
161842
161842
|
"X-GDC-JS-PACKAGE": "@gooddata/api-client-tiger",
|
|
161843
|
-
"X-GDC-JS-PACKAGE-VERSION": "11.58.0-alpha.
|
|
161843
|
+
"X-GDC-JS-PACKAGE-VERSION": "11.58.0-alpha.5"
|
|
161844
161844
|
},
|
|
161845
161845
|
post: { "Content-Type": "application/json;charset=utf8" },
|
|
161846
161846
|
put: { "Content-Type": "application/json;charset=utf8" }
|