Skip to content

Remove sort description from streams#12613

Merged
KochetovNicolai merged 4 commits intomasterfrom
remove-sort-description-from-streams
Jul 22, 2020
Merged

Remove sort description from streams#12613
KochetovNicolai merged 4 commits intomasterfrom
remove-sort-description-from-streams

Conversation

@KochetovNicolai
Copy link
Copy Markdown
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix error Output of TreeExecutor is not sorted for OPTIMIZE DEDUPLICATE. Fixes #11572

@KochetovNicolai KochetovNicolai added pr-bugfix Pull request with bugfix, not backported by default no-docs-needed labels Jul 21, 2020
@alexey-milovidov alexey-milovidov self-assigned this Jul 21, 2020

if (deduplicate)
merged_stream = std::make_shared<DistinctSortedBlockInputStream>(merged_stream, SizeLimits(), 0 /*limit_hint*/, Names());
merged_stream = std::make_shared<DistinctSortedBlockInputStream>(merged_stream, sort_description, SizeLimits(), 0 /*limit_hint*/, Names());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's rewrite it to processors and remove DistinctSortedBlockInputStream in next PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok

@alexey-milovidov
Copy link
Copy Markdown
Member

OUTPUT_IS_NOT_SORTED can be removed from ErrorCodes.cpp too.

@KochetovNicolai
Copy link
Copy Markdown
Member Author

Yandex third-party checks is broken because of changes in interface. Shouldn't merge yet.

@KochetovNicolai KochetovNicolai merged commit 76d784b into master Jul 22, 2020
@KochetovNicolai KochetovNicolai deleted the remove-sort-description-from-streams branch July 22, 2020 14:35
KochetovNicolai added a commit that referenced this pull request Jul 28, 2020
)

* Remove SortDescription from IBlockInputStream.

* Added test.

* Fix style.

* Remove unused error code.

Co-authored-by: Nikolai Kochetov <[email protected]>
Co-authored-by: Nikolai Kochetov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-docs-needed pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output of TreeExecutor is not sorted after OPTIMIZE FINAL DEDUPLICATE

2 participants