Skip to content

Commit a7f4664

Browse files
committed
[DO NOT MERGE] hide some logs and just run tests
1 parent ade37ea commit a7f4664

File tree

3 files changed

+68
-68
lines changed

3 files changed

+68
-68
lines changed

packages/cubejs-jdbc-driver/src/JDBCDriver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ export class JDBCDriver extends BaseDriver {
151151

152152
this.pool = genericPool.createPool({
153153
create: async () => {
154-
console.log('before await this.getCustomClassPath()', new Error().stack);
154+
// console.log('before await this.getCustomClassPath()', new Error().stack);
155155
const ccp = await this.getCustomClassPath();
156-
console.log('before await initMvn(ccp)');
156+
// console.log('before await initMvn(ccp)');
157157
await initMvn(ccp);
158158

159159
if (!this.jdbcProps) {
@@ -162,7 +162,7 @@ export class JDBCDriver extends BaseDriver {
162162
}
163163

164164
const getConnection = promisify(DriverManager.getConnection.bind(DriverManager));
165-
console.log('new Connection this.config.url', this.config.url);
165+
// console.log('new Connection this.config.url', this.config.url);
166166
return new Connection(await getConnection(this.config.url, this.jdbcProps));
167167
},
168168
// @ts-expect-error Promise<Function> vs Promise<void>

packages/cubejs-testing-drivers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"clickhouse-export-bucket-s3-full": "yarn test-driver -i dist/test/clickhouse-export-bucket-s3-full.test.js",
2828
"databricks-jdbc-driver": "yarn test-driver -i dist/test/databricks-jdbc-driver.test.js",
2929
"databricks-jdbc-core": "yarn test-driver -i dist/test/databricks-jdbc-core.test.js",
30-
"databricks-jdbc-full": "node dist/test/databricks-jdbc-full.test.js",
30+
"databricks-jdbc-full": "yarn test-driver -i dist/test/databricks-jdbc-full.test.js",
3131
"databricks-jdbc-export-bucket-s3-full": "yarn test-driver -i dist/test/databricks-jdbc-export-bucket-s3-full.test.js",
3232
"databricks-jdbc-export-bucket-azure-full": "yarn test-driver -i dist/test/databricks-jdbc-export-bucket-azure-full.test.js",
3333
"mssql-driver": "yarn test-driver -i dist/test/mssql-driver.test.js",
Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
import * as https from 'node:https';
2-
3-
import D from '@cubejs-backend/databricks-jdbc-driver';
1+
// import * as https from 'node:https';
2+
//
3+
// import D from '@cubejs-backend/databricks-jdbc-driver';
44

55
import { testQueries } from '../src/tests/testQueries';
66

7-
https.get(
8-
'https://ohio.cloud.databricks.com/sql/1.0/warehouses/',
9-
(res) => {
10-
console.log(
11-
'res status and headers',
12-
res.statusCode,
13-
res.statusMessage,
14-
res.headers
15-
);
16-
res.on('data', (chunk) => console.log('res data', chunk.toString()));
17-
}
18-
);
19-
20-
https.get(
21-
'https://ohio.cloud.databricks.com/sql/1.0/warehouses/',
22-
{
23-
headers: {
24-
authorization: `Bearer ${process.env.DRIVERS_TESTS_CUBEJS_DB_DATABRICKS_TOKEN}`,
25-
}
26-
},
27-
(res) => {
28-
console.log(
29-
'res with token status and headers',
30-
res.statusCode,
31-
res.statusMessage,
32-
res.headers
33-
);
34-
res.on('data', (chunk) => console.log('res with token data', chunk.toString()));
35-
}
36-
);
37-
38-
async function f() {
39-
const source = new D({
40-
url: 'jdbc:databricks://ohio.cloud.databricks.com/default;httpPath=/sql/1.0/warehouses/;',
41-
maxPoolSize: 1,
42-
});
43-
console.log('test driver constructed');
44-
const qRes = await source.query('SELECT 1 as foo;', []);
45-
console.log('qRes', qRes);
46-
}
47-
48-
f()
49-
.then(
50-
() => {
51-
console.log('driver test query succ');
52-
process.exit(0);
53-
},
54-
e => {
55-
console.log('driver test query failed', e);
56-
process.exit(1);
57-
}
58-
);
59-
60-
setTimeout(() => {
61-
console.log('TIMING OUT');
62-
process.exit(1);
63-
}, 3 * 60 * 1000);
7+
// https.get(
8+
// 'https://ohio.cloud.databricks.com/sql/1.0/warehouses/',
9+
// (res) => {
10+
// console.log(
11+
// 'res status and headers',
12+
// res.statusCode,
13+
// res.statusMessage,
14+
// res.headers
15+
// );
16+
// res.on('data', (chunk) => console.log('res data', chunk.toString()));
17+
// }
18+
// );
19+
//
20+
// https.get(
21+
// 'https://ohio.cloud.databricks.com/sql/1.0/warehouses/',
22+
// {
23+
// headers: {
24+
// authorization: `Bearer ${process.env.DRIVERS_TESTS_CUBEJS_DB_DATABRICKS_TOKEN}`,
25+
// }
26+
// },
27+
// (res) => {
28+
// console.log(
29+
// 'res with token status and headers',
30+
// res.statusCode,
31+
// res.statusMessage,
32+
// res.headers
33+
// );
34+
// res.on('data', (chunk) => console.log('res with token data', chunk.toString()));
35+
// }
36+
// );
37+
//
38+
// async function f() {
39+
// const source = new D({
40+
// url: 'jdbc:databricks://ohio.cloud.databricks.com/default;httpPath=/sql/1.0/warehouses/;',
41+
// maxPoolSize: 1,
42+
// });
43+
// console.log('test driver constructed');
44+
// const qRes = await source.query('SELECT 1 as foo;', []);
45+
// console.log('qRes', qRes);
46+
// }
47+
//
48+
// f()
49+
// .then(
50+
// () => {
51+
// console.log('driver test query succ');
52+
// process.exit(0);
53+
// },
54+
// e => {
55+
// console.log('driver test query failed', e);
56+
// process.exit(1);
57+
// }
58+
// );
59+
//
60+
// setTimeout(() => {
61+
// console.log('TIMING OUT');
62+
// process.exit(1);
63+
// }, 3 * 60 * 1000);
6464

65-
// testQueries('databricks-jdbc', {
66-
// includeIncrementalSchemaSuite: true,
67-
// includeHLLSuite: true,
68-
// });
65+
testQueries('databricks-jdbc', {
66+
includeIncrementalSchemaSuite: true,
67+
includeHLLSuite: true,
68+
});

0 commit comments

Comments
 (0)