Skip to content

go/adbc/driver/snowflake: setting max number of rows to return in records #2702

Open
@frbvianna

Description

@frbvianna

What feature or improvement would you like to see?

Is there some way to specify a maximum number of rows / fetch size that each Arrow record from a query result can contain? Otherwise is there some known limit of size / number of rows that is returned for each record?
Would it be feasible to implement e.g. a statement option for that, like the below?

fetchSize := 10000 // num. rows
stmt.SetOption(snowflake.OptionFetchSize, fetchSize)

rr, _, err := stmt.ExecuteQuery(ctx)
if err != nil {
	return err
}
defer rr.Release()

for rr.Next() {
	rec := rr.Record()

	rec.NumRows() // <= fetchSize
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions