Skip to content
This repository was archived by the owner on Dec 11, 2022. It is now read-only.

Commit 1bc908d

Browse files
committed
Fixes #46
1 parent 685a1f0 commit 1bc908d

File tree

5 files changed

+4
-33
lines changed

5 files changed

+4
-33
lines changed

dist/module.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35093,23 +35093,7 @@ function (_super) {
3509335093
});
3509435094
}
3509535095

35096-
this.selectMenu.push(aggregates); // ordered set aggregates require postgres 9.4+
35097-
35098-
if (this.datasource.jsonData.postgresVersion >= 904) {
35099-
var aggregates2 = {
35100-
submenu: [{
35101-
text: "Percentile (continuous)",
35102-
value: "percentile_cont"
35103-
}, {
35104-
text: "Percentile (discrete)",
35105-
value: "percentile_disc"
35106-
}],
35107-
text: "Ordered-Set Aggregate Functions",
35108-
value: "percentile"
35109-
};
35110-
this.selectMenu.push(aggregates2);
35111-
}
35112-
35096+
this.selectMenu.push(aggregates);
3511335097
var windows = {
3511435098
text: "Window Functions",
3511535099
value: "window",

dist/module.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"path": "bigquery",
3030
"url": "https://www.googleapis.com/bigquery",
3131
"jwtTokenAuth": {
32-
"scopes": ["https://www.googleapis.com/auth/bigquery"],
32+
"scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/drive"],
3333
"params": {
3434
"token_uri": "{{.JsonData.tokenUri}}",
3535
"client_email": "{{.JsonData.clientEmail}}",

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"path": "bigquery",
3030
"url": "https://www.googleapis.com/bigquery",
3131
"jwtTokenAuth": {
32-
"scopes": ["https://www.googleapis.com/auth/bigquery"],
32+
"scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/drive"],
3333
"params": {
3434
"token_uri": "{{.JsonData.tokenUri}}",
3535
"client_email": "{{.JsonData.clientEmail}}",

src/query_ctrl.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,6 @@ export class BigQueryQueryCtrl extends QueryCtrl {
164164

165165
this.selectMenu.push(aggregates);
166166

167-
// ordered set aggregates require postgres 9.4+
168-
if (this.datasource.jsonData.postgresVersion >= 904) {
169-
const aggregates2 = {
170-
submenu: [
171-
{ text: "Percentile (continuous)", value: "percentile_cont" },
172-
{ text: "Percentile (discrete)", value: "percentile_disc" }
173-
],
174-
text: "Ordered-Set Aggregate Functions",
175-
value: "percentile"
176-
};
177-
this.selectMenu.push(aggregates2);
178-
}
179-
180167
const windows = {
181168
text: "Window Functions",
182169
value: "window",

0 commit comments

Comments
 (0)