Skip to content

Conversation

@dahbka-lis
Copy link
Member

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

  • There is some global refactoring in the library
  • Updated the nested types.
  • The new Variant max size is 128 ** 2.
  • 2747 lines of tests.
  • Beautiful decomposition for test helpers.
  • New comments to understand what is happening here...
    ...

@dahbka-lis dahbka-lis requested a review from a team as a code owner November 7, 2025 19:11
Copilot AI review requested due to automatic review settings November 7, 2025 19:11
@dahbka-lis dahbka-lis requested a review from a team as a code owner November 7, 2025 19:11
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 pull request performs a comprehensive refactoring of the KQP Arrow format utilities by renaming files from kqp_result_set_arrow.* to kqp_formats_arrow.* and extracting test utilities into separate modules. The changes improve code organization without altering functionality.

Key Changes:

  • Renamed core Arrow conversion files: kqp_result_set_arrow.{h,cpp}kqp_formats_arrow.{h,cpp}
  • Extracted test helper utilities from test file into kqp_formats_ut_helpers.{h,cpp}
  • Split large test file into modular structure with dedicated helper and test files
  • Updated all include references across the codebase to use the new filenames
  • Enhanced documentation with comprehensive API comments

Reviewed Changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ydb/core/kqp/common/result_set_format/ya.make Updated build configuration to reference kqp_formats_arrow.cpp instead of old filename
ydb/core/kqp/common/result_set_format/ut/ya.make Added new test helper source file and renamed test file in build configuration
ydb/core/kqp/common/result_set_format/ut/kqp_result_set_arrow_ut.cpp Removed (deleted) - old test file
ydb/core/kqp/common/result_set_format/ut/kqp_formats_ut_helpers.h New header for test utility functions with proper documentation
ydb/core/kqp/common/result_set_format/ut/kqp_formats_ut_helpers.cpp New implementation of test utilities extracted from old test file
ydb/core/kqp/common/result_set_format/ut/kqp_formats_arrow_ut.cpp New test file with refactored and expanded test cases
ydb/core/kqp/common/result_set_format/kqp_result_set_builders.cpp Updated include path to use new header filename
ydb/core/kqp/common/result_set_format/kqp_result_set_arrow.h Removed (deleted) - old header file
ydb/core/kqp/common/result_set_format/kqp_result_set_arrow.cpp Removed (deleted) - old implementation file
ydb/core/kqp/common/result_set_format/kqp_formats_arrow.h New header with improved documentation and cleaner API surface
ydb/core/formats/arrow/arrow_helpers_minikql.cpp Updated include path to use new header filename
ydb/core/formats/arrow/arrow_batch_builder.cpp Updated include path to use new header filename

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

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

🟢 2025-11-07 19:14:18 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 19:15:15 UTC Pre-commit check linux-x86_64-relwithdebinfo for 22a1b15 has started.
2025-11-07 19:15:32 UTC Artifacts will be uploaded here
2025-11-07 19:18:01 UTC ya make is running...
2025-11-07 20:01:22 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 19:15:24 UTC Pre-commit check linux-x86_64-release-asan for 22a1b15 has started.
2025-11-07 19:15:43 UTC Artifacts will be uploaded here
2025-11-07 19:18:04 UTC ya make is running...
2025-11-07 20:01:19 UTC Check cancelled

@dahbka-lis dahbka-lis linked an issue Nov 7, 2025 that may be closed by this pull request
gridnevvvit
gridnevvvit previously approved these changes Nov 7, 2025
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

2025-11-07 20:02:51 UTC Pre-commit check linux-x86_64-relwithdebinfo for e40f240 has started.
2025-11-07 20:03:08 UTC Artifacts will be uploaded here
2025-11-07 20:05:34 UTC ya make is running...
🟡 2025-11-07 21:43:55 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39760 36897 0 4 2821 38

2025-11-07 21:44:15 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-07 21:55:15 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
115 (only retried tests) 99 0 0 0 16

🟢 2025-11-07 21:55:24 UTC Build successful.
🟢 2025-11-07 21:55:43 UTC ydbd size 2.3 GiB changed* by -60.8 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 0eca578 merge: e40f240 diff diff %
ydbd size 2 431 882 840 Bytes 2 431 820 560 Bytes -60.8 KiB -0.003%
ydbd stripped size 516 543 408 Bytes 516 544 368 Bytes +960 Bytes +0.000%

*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 7, 2025

2025-11-07 20:02:54 UTC Pre-commit check linux-x86_64-release-asan for e40f240 has started.
2025-11-07 20:03:12 UTC Artifacts will be uploaded here
2025-11-07 20:05:38 UTC ya make is running...
🟡 2025-11-07 22:07:23 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?
16157 15511 0 351 268 27

🟢 2025-11-07 22:07:37 UTC Build successful.
🟢 2025-11-07 22:08:04 UTC ydbd size 3.8 GiB changed* by -205.0 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 0eca578 merge: e40f240 diff diff %
ydbd size 4 073 137 384 Bytes 4 072 927 432 Bytes -205.0 KiB -0.005%
ydbd stripped size 1 511 891 496 Bytes 1 511 808 136 Bytes -81.4 KiB -0.006%

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

gridnevvvit
gridnevvvit previously approved these changes Nov 7, 2025
@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 09:25:57 UTC Pre-commit check linux-x86_64-release-asan for 2d3bc32 has started.
2025-11-10 09:26:15 UTC Artifacts will be uploaded here
2025-11-10 09:28:29 UTC ya make is running...
🟡 2025-11-10 11:22:53 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?
16165 15664 0 230 238 33

🟢 2025-11-10 11:23:09 UTC Build successful.
🟢 2025-11-10 11:23:36 UTC ydbd size 3.8 GiB changed* by -201.0 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 56f5415 merge: 2d3bc32 diff diff %
ydbd size 4 080 343 792 Bytes 4 080 137 936 Bytes -201.0 KiB -0.005%
ydbd stripped size 1 514 662 856 Bytes 1 514 583 592 Bytes -77.4 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

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

2025-11-10 09:25:58 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2d3bc32 has started.
2025-11-10 09:26:17 UTC Artifacts will be uploaded here
2025-11-10 09:28:45 UTC ya make is running...
🟡 2025-11-10 11:08:24 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39768 36917 0 6 2811 34

2025-11-10 11:08:47 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-10 11:20:33 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
95 (only retried tests) 79 0 0 0 16

🟢 2025-11-10 11:20:44 UTC Build successful.
🟢 2025-11-10 11:21:09 UTC ydbd size 2.3 GiB changed* by -60.8 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 56f5415 merge: 2d3bc32 diff diff %
ydbd size 2 437 268 264 Bytes 2 437 206 000 Bytes -60.8 KiB -0.003%
ydbd stripped size 518 550 160 Bytes 518 551 120 Bytes +960 Bytes +0.000%

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

@dahbka-lis dahbka-lis enabled auto-merge (squash) November 10, 2025 12:32
@dahbka-lis dahbka-lis merged commit 197fc79 into ydb-platform:main Nov 10, 2025
11 checks passed
dahbka-lis added a commit to dahbka-lis/ydb that referenced this pull request Nov 18, 2025
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.

Support nested types from public mapping YQL to Arrow

3 participants