Skip to content

go/adbc/driver/snowflake: GetObjects panics while retrieving table columns of vector type #2544

@frbvianna

Description

@frbvianna

What happened?

When a table contains a column of VECTOR data type, the driver panics:
panic: runtime error: invalid memory address or nil pointer dereference

To my understanding, this is not a supported type by this driver or Go clients in general.

However, the driver could return a clearer error message.

Stack Trace

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x103f614c0]

goroutine 74 [running]:
github.com/apache/arrow-adbc/go/adbc/driver/internal/driverbase.ToXdbcDataType({0x0, 0x0})
        /Users/<redacted>/go/pkg/mod/github.com/apache/arrow-adbc/go/[email protected]/driver/internal/driverbase/connection.go:703 +0x20
github.com/apache/arrow-adbc/go/adbc/driver/snowflake.(*connectionImpl).GetObjects.func4()
        /Users/<redacted>/go/pkg/mod/github.com/apache/arrow-adbc/go/[email protected]/driver/snowflake/connection.go:368 +0x280
created by github.com/apache/arrow-adbc/go/adbc/driver/snowflake.(*connectionImpl).GetObjects in goroutine 1
        /Users/<redacted>/go/pkg/mod/github.com/apache/arrow-adbc/go/[email protected]/driver/snowflake/connection.go:354 +0x164c
exit status 2

How can we reproduce the bug?

Environment/Setup

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions