@dataform/assertion_utils
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -30,8 +30,7 @@ (function (factory) { | ||
SELECT | ||
${this.groupCols.map((field, i) => `${field} as c_${i}`).join(", ")}, | ||
${this.groupCols.join(", ")}, | ||
SUM(1) as row_count | ||
FROM ${this.dataset} | ||
GROUP BY | ||
${this.groupCols.map((field, i) => `${i + 1}`).join(", ")} | ||
${this.groupCols.join(", ")} | ||
) | ||
@@ -50,2 +49,2 @@ | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9hc3NlcnRpb25fdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUFBQSxTQUFnQixVQUFVLENBQUMsT0FBZTtRQUN4QyxPQUFPLElBQUksZ0JBQWdCLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDdkMsQ0FBQztJQUZELGdDQUVDO0lBRUQsTUFBYSxnQkFBZ0I7UUFHM0IsWUFBWSxPQUFlO1lBRG5CLGNBQVMsR0FBYSxFQUFFLENBQUM7WUFFL0IsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7UUFDekIsQ0FBQztRQUVNLFNBQVMsQ0FBQyxJQUF1QjtZQUN0QyxJQUFJLENBQUMsU0FBUyxHQUFHLE9BQU8sSUFBSSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDO1lBQzFELE9BQU8sSUFBSSxDQUFDO1FBQ2QsQ0FBQztRQUVNLGlCQUFpQjtZQUN0QixPQUFPOzs7O1FBSUgsSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxFQUFFLEVBQUUs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aXMuZ3JvdXBDb2xzLmpvaW4oXCIsIFwiKX1cbiAgICApXG4gIFxuICAgIFNFTEVDVFxuICAgICAgKlxuICAgIEZST01cbiAgICAgIGJhc2VcbiAgICBXSEVSRVxuICAgICAgcm93X2NvdW50ID4gMVxuICAgIGA7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"homepage": "https://github.com/dataform-co/dataform", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@dataform/core": "1.1.2" | ||
"@dataform/core": "1.2.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "main": "index.js", |
4108
+ Added@dataform/core@1.2.0(transitive)
+ Added@dataform/protos@1.2.0(transitive)
- Removed@dataform/core@1.1.2(transitive)
- Removed@dataform/protos@1.1.2(transitive)
Updated@dataform/core@1.2.0