Skip to content

Unable to read VARBINARY column from iceberg #28

@mannerni

Description

@mannerni

Hi, I have a VARBINARY column in my table. I'm able to INSERT the data into table/column (as byte[]) but while reading I'm getting it as some string and not able to identify how to read the same & convert back to byte[]. Need help in sharing proper steps (either insert or read) or identify if its potential issue in client.

Tried with both trino client & ADO - but unable to read correctly
Using direct method trino client: tried following attempt
var times = Encoding.UTF8.GetBytes(row[6] as string); // The byte[] returned when to given to decompress I get exception.

Using ADO: getting below exception
var dataTable = await records.BuildDataTableAsync().ConfigureAwait(false);// Note: Invalid cast from 'System.String' to 'System.Byte[]'."

Thanks & Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions