Skip to content

go: sqldriver doesn't support all possible Arrow types #4185

@amoeba

Description

@amoeba

What feature or improvement would you like to see?

The Go sqldriver ADBC interface doesn't support the more complex types such as list/map/struct and some more. When users try to return results involving these types, they get this error from Next():

default:
return &adbc.Error{
Code: adbc.StatusNotImplemented,
Msg: "not yet implemented populating from columns of type " + col.DataType().String(),
}
}

And queries like these fail with it,

  • SELECT [3, 11, 17] AS my_list_col
  • SELECT {'x': 3, 'y': eleven'} AS my_struct_col
  • SELECT MAP(['a, 'b'], [3, 11]) AS my_map_col

The workaround for now is to drop down into the low level Go ADBC interfaces (where the types are supported).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions