@cubejs-backend/schema-compiler 1.7.2 → 1.7.3

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.
@@ -2,6 +2,6 @@ import { PostgresQuery } from './PostgresQuery';
2
2
  export declare class CrateQuery extends PostgresQuery {
3
3
  hllInit(_sql: any): string;
4
4
  hllMerge(_sql: any): string;
5
- countDistinctApprox(_sql: any): string;
5
+ countDistinctApprox(sql: string): string;
6
6
  }
7
7
  //# sourceMappingURL=CrateQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CrateQuery.d.ts","sourceRoot":"","sources":["../../../src/adapter/CrateQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBAAa,UAAW,SAAQ,aAAa;IACpC,OAAO,CAAC,IAAI,KAAA,GAAG,MAAM;IAIrB,QAAQ,CAAC,IAAI,KAAA,GAAG,MAAM;IAKtB,mBAAmB,CAAC,IAAI,KAAA,GAAG,MAAM;CAGzC"}
1
+ {"version":3,"file":"CrateQuery.d.ts","sourceRoot":"","sources":["../../../src/adapter/CrateQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBAAa,UAAW,SAAQ,aAAa;IACpC,OAAO,CAAC,IAAI,KAAA,GAAG,MAAM;IAIrB,QAAQ,CAAC,IAAI,KAAA,GAAG,MAAM;IAItB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;CAGhD"}
@@ -10,9 +10,8 @@ class CrateQuery extends PostgresQuery_1.PostgresQuery {
10
10
  hllMerge(_sql) {
11
11
  throw new UserError_1.UserError('Not implemented yet');
12
12
  }
13
- // to implement after merge
14
- countDistinctApprox(_sql) {
15
- throw new UserError_1.UserError('Not implemented yet');
13
+ countDistinctApprox(sql) {
14
+ return `hyperloglog_distinct(${sql})`;
16
15
  }
17
16
  }
18
17
  exports.CrateQuery = CrateQuery;
@@ -1 +1 @@
1
- {"version":3,"file":"CrateQuery.js","sourceRoot":"","sources":["../../../src/adapter/CrateQuery.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,qDAAkD;AAElD,MAAa,UAAW,SAAQ,6BAAa;IACpC,OAAO,CAAC,IAAI;QACjB,MAAM,IAAI,qBAAS,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC;IAEM,QAAQ,CAAC,IAAI;QAClB,MAAM,IAAI,qBAAS,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC;IAED,2BAA2B;IACpB,mBAAmB,CAAC,IAAI;QAC7B,MAAM,IAAI,qBAAS,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC;CACF;AAbD,gCAaC"}
1
+ {"version":3,"file":"CrateQuery.js","sourceRoot":"","sources":["../../../src/adapter/CrateQuery.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,qDAAkD;AAElD,MAAa,UAAW,SAAQ,6BAAa;IACpC,OAAO,CAAC,IAAI;QACjB,MAAM,IAAI,qBAAS,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC;IAEM,QAAQ,CAAC,IAAI;QAClB,MAAM,IAAI,qBAAS,CAAC,qBAAqB,CAAC,CAAC;IAC7C,CAAC;IAEM,mBAAmB,CAAC,GAAW;QACpC,OAAO,wBAAwB,GAAG,GAAG,CAAC;IACxC,CAAC;CACF;AAZD,gCAYC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@cubejs-backend/schema-compiler",
3
3
  "description": "Cube schema compiler",
4
4
  "author": "Cube Dev, Inc.",
5
- "version": "1.7.2",
5
+ "version": "1.7.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/cube-js/cube.git",
@@ -40,8 +40,8 @@
40
40
  "@babel/standalone": "^7.24",
41
41
  "@babel/traverse": "^7.24",
42
42
  "@babel/types": "^7.24",
43
- "@cubejs-backend/native": "1.7.2",
44
- "@cubejs-backend/shared": "1.7.2",
43
+ "@cubejs-backend/native": "1.7.3",
44
+ "@cubejs-backend/shared": "1.7.3",
45
45
  "antlr4": "^4.13.2",
46
46
  "camelcase": "^6.2.0",
47
47
  "cron-parser": "^4.9.0",
@@ -60,9 +60,9 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@clickhouse/client": "^1.12.0",
63
- "@cubejs-backend/linter": "1.7.2",
64
- "@cubejs-backend/mssql-driver": "1.7.2",
65
- "@cubejs-backend/query-orchestrator": "1.7.2",
63
+ "@cubejs-backend/linter": "1.7.3",
64
+ "@cubejs-backend/mssql-driver": "1.7.3",
65
+ "@cubejs-backend/query-orchestrator": "1.7.3",
66
66
  "@types/babel__code-frame": "^7.0.6",
67
67
  "@types/babel__generator": "^7.6.8",
68
68
  "@types/babel__traverse": "^7.20.5",
@@ -89,5 +89,5 @@
89
89
  "eslintConfig": {
90
90
  "extends": "../cubejs-linter"
91
91
  },
92
- "gitHead": "cc1f0782e71c3bddf0cf101786b28a589bac9e14"
92
+ "gitHead": "b8cfde8a2b0af0445fb8e3d9443ab1873b515e59"
93
93
  }