Skip to content

Add support for large query plans in URL parameters using compression - #232

Merged
vogelsgesang merged 3 commits into
tableau:mainfrom
axeluhlig:compressed_files
Nov 12, 2026
Merged

vogelsgesang merged 3 commits into
tableau:mainfrom
axeluhlig:compressed_files

Conversation

@axeluhlig

Copy link
Copy Markdown
Contributor

Problem

Users can provide query plans and the corresponding SQL using the file and sql_file parameters. For very large query plans the URLs are exceeding 1 MB in size, which is causing issues in some of our tooling.

Solution

We add support for providing fileand sql_file as data:application/gzip;base64,.... By compressing the data we significantly reduce the URL size. Decompression is happening locally using DecompressionStream, which all modern browsers support.

Notes

  • Providing uncompressed data is still possible
  • To protect the host from the browser exhausting local memory we limit the decompressed output size to 1 GB
  • I moved the shared URL reader into a new file, so I can test it more easily.

Comment thread standalone-app/src/readEmbeddedGzip.ts Resolved
@vogelsgesang
vogelsgesang merged commit 6aa81c6 into tableau:main Nov 12, 2026
4 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.

2 participants