File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ export class DatabricksSingleton {
31
31
* */
32
32
export async function check ( req , res , connection ) {
33
33
try {
34
- await connection . openSession ( ) ;
34
+ // If a session fails to open, currently the error is not propagating correctly.
35
+ // see: https://github.com/databricks/databricks-sql-nodejs/issues/77
36
+ await new Promise ( ( resolve , reject ) => {
37
+ connection . on ( "error" , reject ) . openSession ( ) . then ( resolve ) ;
38
+ } ) ;
39
+
35
40
return { ok : true } ;
36
41
} catch ( e ) {
37
42
throw e ;
Original file line number Diff line number Diff line change 18
18
"observable-database-proxy" : " ./bin/observable-database-proxy.js"
19
19
},
20
20
"dependencies" : {
21
- "@databricks/sql" : " ^1.0.0 " ,
21
+ "@databricks/sql" : " https://github.com/databricks/databricks-sql-nodejs#3df43263184aeaab1b473e65dfe08cb8fa9daaf4 " ,
22
22
"JSONStream" : " ^1.3.5" ,
23
23
"ajv" : " ^8.11.0" ,
24
24
"micro" : " ^9.3.4" ,
Original file line number Diff line number Diff line change 1119
1119
enabled "2.0.x"
1120
1120
kuler "^2.0.0"
1121
1121
1122
- " @databricks/sql@^1.0.0 " :
1122
+ " @databricks/sql@https://github.com/databricks/databricks-sql-nodejs#3df43263184aeaab1b473e65dfe08cb8fa9daaf4 " :
1123
1123
version "1.0.0"
1124
- resolved "https://registry.yarnpkg.com/@databricks/sql/-/sql-1.0.0.tgz#aa12de5a364c1d15584de9807949e5ac957cef2d"
1125
- integrity sha512-73NVxH0tAVV/u2ns0T3tYpOvvAQ5kTFoQZATHpSlBBQRwTPKmzvHsq+jbpex/wqescoQ6TW9ZRf7W8sO4w2z4g==
1124
+ resolved "https://github.com/databricks/databricks-sql-nodejs#3df43263184aeaab1b473e65dfe08cb8fa9daaf4"
1126
1125
dependencies :
1127
1126
commander "^9.3.0"
1128
1127
node-int64 "^0.4.0"
You can’t perform that action at this time.
0 commit comments