Closed jonashaag closed 1 year ago
Thanks for the report! It looks like that line doesn't check a slice's length before indexing it
Hmm, weird. Snowflake returns no Arrow batches for SHOW WAREHOUSES
but also claims the result set is non-empty...
So indeed, it seems Snowflake doesn't support getting Arrow data for certain queries.
(dlv) p scd
*github.com/snowflakedb/gosnowflake.snowflakeArrowStreamChunkDownloader {
sc: *github.com/snowflakedb/gosnowflake.snowflakeConn {
ctx: context.Context(*context.valueCtx) ...,
cfg: *(*"github.com/snowflakedb/gosnowflake.Config")(0xc0004a88c0),
rest: *(*"github.com/snowflakedb/gosnowflake.snowflakeRestful")(0xc000a72180),
SequenceCounter: 1,
QueryID: "01ad4ad4-0001-2b93-0001-8206045595ce",
SQLState: "",
telemetry: *(*"github.com/snowflakedb/gosnowflake.snowflakeTelemetry")(0xc0000e6f40),
internal: github.com/snowflakedb/gosnowflake.InternalClient(*github.com/snowflakedb/gosnowflake.httpClient) ...,},
ChunkMetas: []github.com/snowflakedb/gosnowflake.execResponseChunk len: 0, cap: 0, nil,
Total: 12,
Qrmk: "",
ChunkHeader: map[string]string nil,
FuncGet: github.com/snowflakedb/gosnowflake.getChunk,
RowSet: github.com/snowflakedb/gosnowflake.rowSetType {
...
upstream
You mean upstream = Snowflake? Good luck with that...
I'll see if I can find an engineer here at snowflake summit that I can bug to figure out what's up with this. :smile:
While testing https://github.com/pola-rs/polars/pull/9600