ArrowIPCStreamIterator.SchemaBytes() returns zero bytes after a cold start
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start with ArrowIPCStreamIterator.SchemaBytes() and the GetArrowIPCStreams path described in the reproducer. Re-run the example with a stopped Databricks SQL Warehouse, compare it with an active warehouse, and trace how the SELECT 1 response supplies schema data. Done means SchemaBytes() returns non-empty schema bytes after the warehouse cold-start path.
Written by the indexing model from the issue text.
Description
Context
Given an Databricks SQL Warehouse that is currently stopped and this code:
driverCntor, driverErr := dbsql.NewConnector(options...)
if driverErr != nil {
return driverErr
}
conn, connErr := driverCntor.Connect(ctx)
if connErr != nil {
return connErr
}
ctx := context.Background()
rows, queryErr := conn.(driver.QueryerContext).QueryContext(ctx, "SELECT 1", []driver.NamedValue{})
if queryErr != nil {
return queryErr
}
defer rows.Close()
ipcStreamIt, ipcStreamErr := rows.(dbsqlrows.Rows).GetArrowIPCStreams(ctx)
if ipcStreamErr != nil {
return ipcStreamErr
}
defer ipcStreamIt.Close()
schemaBytes, schemaErr := ipcStreamIt.SchemaBytes()
if schemaErr != nil {
return schemaErr
}
if len(schemaBytes) == 0 {
return fmt.Errorf("no schema bytes")
}
Expected result
No error
Actual result
Error: no schema bytes
Notes
- This only happens when the Databricks SQL Warehouse is stopped
- When the Databricks SQL Warehouse is active,
schemaBytescontains correct data
- Dominant language
- Go
- Stars
- 53
- Forks
- 67
- Avg merge
- 21h 29m
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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-go
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
databricks/databricks-sql-go#476 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
databricks/databricks-sql-go#490 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
databricks/databricks-sql-go#481 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
databricks/databricks-sql-go#480 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
databricks/databricks-sql-go#475 · 1 comment ·
Maintainers usually reply within 1 day
All issues in databricks/databricks-sql-go
Similar issues
-
agent-butler-finding bug
Difficulty 1/5 Under an hour Newbie friendliness 94/100
jordansmall/spindrift#4367 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
kind/engineering pulumi/pulumi-terraform Task Workflow Failure
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pulumi/pulumi-terraform#1215 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#4132 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliusBrussee/caveman#1177 · 1 comment ·
Maintainers usually reply within 1 day