useKernel = true, can not get real error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- sql, typescript
Research direction
Reproduce the query through DBSQLClient.connect, openSession, and session.executeStatement with useKernel set to true and false. Compare the resulting errors; done means the kernel path exposes the underlying Databricks SQL cast error instead of only reporting "kernel backend: unknown error".
Written by the indexing model from the issue text.
Description
hi owner
we found
const connectOptions: DatabricksConnectOptions = {
authType: 'databricks-oauth',
host: dbConfig.host,
path: dbConfig.httpPath,
oauthClientId: dbConfig.clientId,
oauthClientSecret: dbConfig.clientSecret,
useKernel: true
}
const _client = new DBSQLClient()
await _client.connect(connectOptions)
const session = await _client.openSession()
const sql = `SELECT try_cast('' as ARRAY<STRING>)`
const op = await session.executeStatement(sql)
await op.finished()
will throw
DriverError: kernel backend: unknown error
at decodeNapiKernelError (...) {stack: 'Error: kernel backend: unknown error
)', message: 'kernel backend: unknown error'}
if useKernel: false , will get real error
[DATATYPE_MISMATCH.CAST_WITHOUT_SUGGESTION] Cannot resolve "" due to data type mismatch: cannot cast "STRING" to "ARRAY<STRING>". SQLSTATE: 42K09; line 1 pos 7
- Dominant language
- TypeScript
- Stars
- 36
- Forks
- 50
- Avg merge
- 13h 46m
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from databricks/databricks-sql-nodejs
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
engineer-bot
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
databricks/databricks-sql-nodejs#274 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in databricks/databricks-sql-nodejs
Similar issues
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
supermomonga/zcode-acp#24 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/growthbook#7100 ·
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100