Skip to content

Conversation

@zverevgeny
Copy link
Collaborator

  • Not for changelog (changelog entry is not required)

Copilot AI review requested due to automatic review settings January 4, 2026 11:56
@zverevgeny zverevgeny requested a review from a team as a code owner January 4, 2026 11:56
@github-actions
Copy link

github-actions bot commented Jan 4, 2026

2026-01-04 11:58:16 UTC Pre-commit check linux-x86_64-relwithdebinfo for df4ad4d has started.
2026-01-04 11:59:34 UTC Artifacts will be uploaded here
2026-01-04 12:01:41 UTC ya make is running...
🟡 2026-01-04 13:49:10 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
35671 34077 0 3 1548 43

2026-01-04 13:49:25 UTC ya make is running... (failed tests rerun, try 2)
🟢 2026-01-04 13:59:20 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
614 (only retried tests) 601 0 0 0 13

🟢 2026-01-04 13:59:26 UTC Build successful.
🟢 2026-01-04 13:59:50 UTC ydbd size 2.3 GiB changed* by -99.7 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 86bc6db merge: df4ad4d diff diff %
ydbd size 2 495 882 808 Bytes 2 495 780 672 Bytes -99.7 KiB -0.004%
ydbd stripped size 530 643 520 Bytes 530 621 248 Bytes -21.8 KiB -0.004%

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

@ydbot
Copy link
Collaborator

ydbot commented Jan 4, 2026

Run Extra Tests

Run additional tests for this PR. You can customize:

  • Test Size: small, medium, large (default: all)
  • Test Targets: any directory path (default: ydb/)
  • Sanitizers: ASAN, MSAN, TSAN
  • Coredumps: enable for debugging (default: off)
  • Additional args: custom ya make arguments

▶  Run tests

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

🟢 2026-01-04 11:59:13 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

2026-01-04 12:00:06 UTC Pre-commit check linux-x86_64-release-asan for df4ad4d has started.
2026-01-04 12:00:22 UTC Artifacts will be uploaded here
2026-01-04 12:02:33 UTC ya make is running...
🟡 2026-01-04 13:22:37 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?
13867 13772 0 70 8 17

🟢 2026-01-04 13:22:47 UTC Build successful.
🟢 2026-01-04 13:23:17 UTC ydbd size 3.8 GiB changed* by -142.1 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 86bc6db merge: df4ad4d diff diff %
ydbd size 4 104 383 000 Bytes 4 104 237 472 Bytes -142.1 KiB -0.004%
ydbd stripped size 1 535 379 696 Bytes 1 535 318 480 Bytes -59.8 KiB -0.004%

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

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 removes unused database schema tables and associated code from the columnshard component, specifically deleting LongTxWrites, SmallBlobs, and InsertTable related functionality that is no longer needed.

Key Changes:

  • Removed InsertTable schema version checking logic from the schema version normalizer
  • Deleted the entire insert_table normalizer module (broken_dedup implementation)
  • Removed schema definitions for LongTxWrites, SmallBlobs, and InsertTable tables
  • Cleaned up SmallBlobs table initialization and compression configuration code

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ydb/core/tx/columnshard/normalizer/schema_version/version.cpp Removes code that collected schema versions from the now-deleted InsertTable
ydb/core/tx/columnshard/normalizer/insert_table/ya.make Deletes build configuration for the deprecated insert_table normalizer module
ydb/core/tx/columnshard/normalizer/insert_table/broken_dedup.h Removes header file for insertion deduplication normalizer that's no longer needed
ydb/core/tx/columnshard/normalizer/insert_table/broken_dedup.cpp Removes implementation of the unused insertion deduplication normalizer
ydb/core/tx/columnshard/columnshard_schema.h Renames enum values to indicate deprecated status, removes table schema structs, and comments out helper functions for deleted tables
ydb/core/tx/columnshard/columnshard__init.cpp Removes SmallBlobs table compression and compaction policy configuration that's no longer needed

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

Comment on lines +785 to +799
// static void SaveLongTxWrite(NIceDb::TNiceDb& db, const TInsertWriteId writeId, const ui32 writePartId, const NLongTxService::TLongTxId& longTxId, const std::optional<ui32> granuleShardingVersion) {
// NKikimrLongTxService::TLongTxId proto;
// longTxId.ToProto(&proto);
// TString serialized;
// Y_ABORT_UNLESS(proto.SerializeToString(&serialized));
// db.Table<LongTxWrites>().Key((ui64)writeId).Update(
// NIceDb::TUpdate<LongTxWrites::LongTxId>(serialized),
// NIceDb::TUpdate<LongTxWrites::WritePartId>(writePartId),
// NIceDb::TUpdate<LongTxWrites::GranuleShardingVersion>(granuleShardingVersion.value_or(0))
// );
// }

// static void EraseLongTxWrite(NIceDb::TNiceDb& db, const TInsertWriteId writeId) {
// db.Table<LongTxWrites>().Key((ui64)writeId).Delete();
// }
Copy link

Copilot AI Jan 4, 2026

Choose a reason for hiding this comment

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

Consider removing these commented-out functions entirely instead of leaving them as comments. Since the LongTxWrites table has been removed and these functions reference a non-existent table struct, keeping them as commented code adds maintenance burden without providing value. If historical reference is needed, the code will remain available in version control history.

Copilot uses AI. Check for mistakes.
@zverevgeny zverevgeny marked this pull request as draft January 5, 2026 09:30
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.

2 participants