Skip to content

Truncate wide cells in the interactive table browser#6034

Draft
tanishgupta-db wants to merge 1 commit into
databricks:mainfrom
tanishgupta-db:tableview-truncation
Draft

Truncate wide cells in the interactive table browser#6034
tanishgupta-db wants to merge 1 commit into
databricks:mainfrom
tanishgupta-db:tableview-truncation

Conversation

@tanishgupta-db

Copy link
Copy Markdown

Changes

Truncates each cell to a fixed width (with an ellipsis) in the interactive table browser
(libs/tableview). Previously a single very large value — for example a big BLOB — made its column
extremely wide and degraded rendering and horizontal scrolling.

This affects all consumers of the interactive browser: experimental aitools tools query,
experimental postgres query, and the experimental preview-datasets command. Normal values still
show in full; only unusually long cells are shortened.

Why

The browser sized columns to the full length of the widest value with no upper bound, so one
oversized cell could make the table unusable. Bounding each cell keeps the layout stable regardless
of the data.

Tests

  • Unit tests for the truncation helper (short, at-limit, over-limit, and multibyte inputs) and for
    the rendered table lines with an oversized cell.
  • Existing libs/tableview, aitools, and postgres tests still pass.

@github-actions

Copy link
Copy Markdown
Contributor

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 6034
  • Commit SHA: b0a68c2be4f463941cf9bf0732803545b6342435

Checks will be approved automatically on success.

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.

1 participant