Skip to content

Preserve string column values that look like datetimes#7646

Open
nmosafi wants to merge 1 commit intogetredash:masterfrom
nmosafi:fix-nanosecond-timestamp-display
Open

Preserve string column values that look like datetimes#7646
nmosafi wants to merge 1 commit intogetredash:masterfrom
nmosafi:fix-nanosecond-timestamp-display

Conversation

@nmosafi
Copy link

@nmosafi nmosafi commented Feb 25, 2026

The frontend type-sniffing logic converts datetime-looking strings to moment objects, which only support millisecond precision. Values with sub-millisecond precision (e.g. nanosecond timestamps like "2026-02-23T15:00:01.308267939") lose their fractional digits.

When the backend explicitly sets the column type to "string", the frontend now respects that and skips the datetime/date conversion, displaying the original value as-is.

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Tested by running some queries against our Trino instance. I see 2026-02-23T15:00:01.308267939 displayed completely now, whereas before it would display as 23/02/26 15:00

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

The frontend type-sniffing logic converts datetime-looking strings to
moment objects, which only support millisecond precision.  Values with
sub-millisecond precision (e.g. nanosecond timestamps like
"2026-02-23T15:00:01.308267939") lose their fractional digits.

When the backend explicitly sets the column type to "string", the
frontend now respects that and skips the datetime/date conversion,
displaying the original value as-is.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

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