You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ArrowIPCStreamIterator.SchemaBytes() returns zero bytes after a cold start #312
It complicates the usage where the schema must be known before iterating on the Arrow RecordBatches
It does not work when there are 0 rows in the result (cases 2 and 4 below)
Summary
Case
Warehouse
Result
ArrowIPCStreamIterator.SchemaBytes()
ArrowIPCStreamIterator.Next()
1
Stopped (Cold start)
>= 1 rows
❌ 0 bytes
✅ not EOF -> Can use ipc.NewReader().ArrowSchema()
2
0 rows
❌ 0 bytes
❌ EOF
3
Active
>= 1 rows
✅ valid bytes -> Can use ipc.NewReader().ArrowSchema()
✅ not EOF -> Can use ipc.NewReader().ArrowSchema()
4
0 rows
✅ valid bytes -> Can use ipc.NewReader().ArrowSchema()
❌ EOF
I could combine ArrowIPCStreamIterator.SchemaBytes() and ArrowIPCStreamIterator.Next() to work around cases 1 and 4. But haven't found any workaround for case 2.
Activity
datbth commentedon Dec 24, 2025
This works when the Databricks SQL Warehouse is either stopped or active:
However:
Summary
I could combine
ArrowIPCStreamIterator.SchemaBytes()andArrowIPCStreamIterator.Next()to work around cases 1 and 4. But haven't found any workaround for case 2.jasonlin45 commentedon Mar 4, 2026
@datbth Hey! Would you be able to take a look and see if this fixes your issue?
#327
fix(go): handle empty SchemaBytes for 0-row query results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results
fix: initialize Arrow schemas without direct results