Skip to content

SNOW-2184600: Reduce binary size by opt-out arrow-go/compute package #1455

@datdao

Description

@datdao

What is the current behavior?

The gosnowflake SDK uses the apache/arrow-go/compute package to support batch downloads. However, including this package significantly increases the final binary size (by ~14MB). In use cases like mine, where the SDK is used only to query system tables and perform DDL operations, the batch processing functionality provided by compute is not needed.

What is the desired behavior?

Introduce a build tag (e.g., tag nobatch) or other mechanism to allow clients to exclude the arrow compute dependency when it's not required for their use case.

How would this improve gosnowflake?

Adding such a build tag would enable more lightweight builds of applications using gosnowflake. This is particularly beneficial for distributing binaries in environments where size matters like CLI Migration tools

Metadata

Metadata

Labels

enhancementThe issue is a request for improvement or a new featurestatus-pr_pending_mergeA PR is made and is under reviewstatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions