Skip to content

Conversation

@shivam2680
Copy link
Contributor

@shivam2680 shivam2680 commented May 13, 2025

Description

Disable compression if cloud fetch is enabled.
Reason:
Transient issue Error: Error: Invalid stream checksum: A9A9B8E @17257 at Decoder.emit_Error when running cloud fetch query on sql warehouse
Justification:
Minimal impact(~3% on 500MB) result set.

Testing

Unit tests
e2e test

@shivam2680 shivam2680 self-assigned this May 13, 2025
@shivam2680 shivam2680 changed the title disable compression if cf is enabled disable compression if cloud fetch is enabled May 13, 2025

if (ProtocolVersion.supportsArrowCompression(this.serverProtocolVersion) && request.canDownloadResult !== true) {
request.canDecompressLZ4Result = (options.useLZ4Compression ?? clientConfig.useLZ4Compression) && Boolean(LZ4);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a debug log mentioning that even though LZ4 is set we're disabling it as cloud fetch is enabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a good idea to expose internal limitations. Whether data is downloaded in compressed or uncompressed in internal.

@shivam2680 shivam2680 merged commit 6739115 into main May 19, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants