Skip to content

Conversation

@Gazizonoki
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copilot AI review requested due to automatic review settings November 25, 2025 13:39
@Gazizonoki Gazizonoki requested review from a team as code owners November 25, 2025 13:39
@github-actions
Copy link

github-actions bot commented Nov 25, 2025

🟢 2025-11-25 16:19:37 UTC The validation of the Pull Request description is successful.

Copilot finished reviewing on behalf of Gazizonoki November 25, 2025 13:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the formatting of large Date32, Datetime64, and Timestamp64 values in the viewer UI by replacing std::format calls with custom formatting functions that properly handle the full range of these extended time types without overflow.

Key changes:

  • Added custom formatting functions (FormatDate32, FormatDatetime64, FormatTimestamp64) that manually format time values to avoid std::format overflow issues
  • Replaced std::format calls with the new custom formatters in ColumnPrimitiveValueToJsonValue
  • Added a comment in the example code warning about potential overflow issues with standard output and std::format

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
ydb/public/sdk/cpp/examples/time/main.cpp Added comment documenting potential overflow issues with standard output for large timestamp values
ydb/core/viewer/viewer_query.h Implemented custom formatting functions for Date32/Datetime64/Timestamp64 types and replaced std::format calls to handle large values correctly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@github-actions
Copy link

github-actions bot commented Nov 25, 2025

2025-11-25 13:43:10 UTC Pre-commit check linux-x86_64-relwithdebinfo for f153e3a has started.
2025-11-25 13:43:28 UTC Artifacts will be uploaded here
2025-11-25 13:45:33 UTC ya make is running...
2025-11-25 14:29:35 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 25, 2025

2025-11-25 13:43:34 UTC Pre-commit check linux-x86_64-release-asan for f153e3a has started.
2025-11-25 13:43:52 UTC Artifacts will be uploaded here
2025-11-25 13:46:00 UTC ya make is running...
2025-11-25 14:29:33 UTC Check cancelled

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Nov 25, 2025

2025-11-25 14:30:24 UTC Pre-commit check linux-x86_64-relwithdebinfo for 39d5c7d has started.
2025-11-25 14:31:31 UTC Artifacts will be uploaded here
2025-11-25 14:33:32 UTC ya make is running...
🟡 2025-11-25 15:55:13 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31576 30151 0 5 1397 23

2025-11-25 15:55:24 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-25 16:04:37 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
52 (only retried tests) 39 0 0 0 13

🟢 2025-11-25 16:04:44 UTC Build successful.
🟢 2025-11-25 16:05:08 UTC ydbd size 2.3 GiB changed* by -132.3 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 502f0f1 merge: 39d5c7d diff diff %
ydbd size 2 455 679 936 Bytes 2 455 544 424 Bytes -132.3 KiB -0.006%
ydbd stripped size 523 368 856 Bytes 523 351 704 Bytes -16.8 KiB -0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 25, 2025

2025-11-25 14:30:59 UTC Pre-commit check linux-x86_64-release-asan for 39d5c7d has started.
2025-11-25 14:31:06 UTC Artifacts will be uploaded here
2025-11-25 14:33:08 UTC ya make is running...
🟡 2025-11-25 15:38:55 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11418 11321 0 84 7 6

🟢 2025-11-25 15:39:06 UTC Build successful.
🟢 2025-11-25 15:39:31 UTC ydbd size 3.8 GiB changed* by -328.0 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 502f0f1 merge: 39d5c7d diff diff %
ydbd size 4 110 828 128 Bytes 4 110 492 224 Bytes -328.0 KiB -0.008%
ydbd stripped size 1 528 019 056 Bytes 1 527 863 600 Bytes -151.8 KiB -0.010%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@Gazizonoki Gazizonoki changed the title Fixed wrong output for large DT64* values on UI Fixed wrong output for large DT64* values in UI Nov 25, 2025
@github-actions
Copy link

github-actions bot commented Nov 26, 2025

2025-11-26 12:52:21 UTC Pre-commit check linux-x86_64-release-asan for 2dbf2a0 has started.
2025-11-26 12:52:39 UTC Artifacts will be uploaded here
2025-11-26 12:54:45 UTC ya make is running...
🟡 2025-11-26 14:02:48 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11425 11343 0 66 7 9

🟢 2025-11-26 14:02:57 UTC Build successful.
🟢 2025-11-26 14:03:30 UTC ydbd size 3.8 GiB changed* by -329.7 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 05e6c51 merge: 2dbf2a0 diff diff %
ydbd size 4 111 743 728 Bytes 4 111 406 096 Bytes -329.7 KiB -0.008%
ydbd stripped size 1 528 202 992 Bytes 1 528 046 256 Bytes -153.1 KiB -0.010%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

2025-11-26 12:53:04 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2dbf2a0 has started.
2025-11-26 12:53:35 UTC Artifacts will be uploaded here
2025-11-26 12:55:39 UTC ya make is running...
🟡 2025-11-26 14:15:46 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31583 30159 0 5 1398 21

2025-11-26 14:15:57 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-26 14:25:38 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
50 (only retried tests) 35 0 0 0 15

🟢 2025-11-26 14:25:44 UTC Build successful.
🟢 2025-11-26 14:26:07 UTC ydbd size 2.3 GiB changed* by -141.4 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 05e6c51 merge: 2dbf2a0 diff diff %
ydbd size 2 456 363 704 Bytes 2 456 218 888 Bytes -141.4 KiB -0.006%
ydbd stripped size 523 441 592 Bytes 523 415 800 Bytes -25.2 KiB -0.005%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@Gazizonoki Gazizonoki merged commit 5ba89c3 into ydb-platform:main Nov 26, 2025
9 checks passed
@Gazizonoki Gazizonoki deleted the fix-wrong-date32-ui branch November 26, 2025 14:36
ydbot pushed a commit that referenced this pull request Nov 26, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ydbot pushed a commit that referenced this pull request Nov 26, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Gazizonoki added a commit to Gazizonoki/ydb that referenced this pull request Nov 26, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Gazizonoki added a commit to Gazizonoki/ydb that referenced this pull request Nov 26, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants