New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymorphic parts (compact format). #8290
Merged
alexey-milovidov
merged 99 commits into
ClickHouse:master
from
CurtizJ:polymorphic-parts
Feb 23, 2020
Merged
Changes from all commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
b433add
polymorphic parts (development)
CurtizJ 18163e4
polymorphic parts (development)
CurtizJ 8ba37da
polymorphic parts (development)
CurtizJ 3ebb2ab
polymorphic parts (development)
CurtizJ ce36cf8
polymorphic parts (development)
CurtizJ 1297991
polymorphic parts (development)
CurtizJ 8df8bce
polymorphic parts (development)
CurtizJ 1d3f005
polymorphic parts (development)
CurtizJ 8b880d6
polymorphic parts (development)
CurtizJ 715ae5a
polymorphic parts (development)
CurtizJ 32858c4
polymorphic parts (development)
CurtizJ 5484f4b
polymorphic parts (development)
CurtizJ 35b7363
polymorphic parts (development)
CurtizJ 7293841
polymorphic parts (development)
CurtizJ 8cf6236
polymorphic parts (development)
CurtizJ c070254
polymorphic parts (development)
CurtizJ f6b1fc5
polymorphic parts (development)
CurtizJ 6cd6af7
polymorphic parts (development)
CurtizJ e1d13ea
polymorphic parts (development)
CurtizJ 426c62a
polymorphic parts (development)
CurtizJ 4350601
polymorphic parts (development)
CurtizJ 94abf36
polymorphic parts (development)
CurtizJ 43b4c4c
polymorphic parts (development)
CurtizJ 49982ad
polymorphic parts (development)
CurtizJ 921d324
polymorphic parts (development)
CurtizJ b54f162
polymorphic parts (development)
CurtizJ 9e7adf4
polymorphic parts (development)
CurtizJ 49e465d
polymorphic parts (development)
CurtizJ d1ddfbb
polymorphic parts (development)
CurtizJ 55deeea
polymorphic parts (development)
CurtizJ 7dbdbff
polymorphic parts (development)
CurtizJ a3875a6
polymorphic parts (development)
CurtizJ 511ae82
polymorphic parts (development) fix adjust last granule
CurtizJ be0e13d
polymorphic parts (development) columns sizes
CurtizJ 31ffad0
polymorphic parts (development) columns sizes
CurtizJ 9df0d45
polymorphic parts (development) fix prewhere
CurtizJ 7803aee
polymorphic parts (development) fix prewhere
CurtizJ bd08520
polymorphic parts (development)
CurtizJ d3b0800
polymorphic parts (development) alter
CurtizJ 26d159e
polymorphic parts (development) alter
CurtizJ 831f39a
polymorphic parts (development) alter
CurtizJ 59faa49
polymorphic parts (development) alter update
CurtizJ ae74d28
polymorphic parts (development) fix alter
CurtizJ 55b7db7
polymorphic parts (development) cleanup
CurtizJ 6f67340
polymorphic parts (development) cleanup
CurtizJ 258e8d6
polymorphic parts (development) cleanup
CurtizJ 9db2f2c
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ ba2a630
merging with master
CurtizJ 206cb1a
fix broken by refactoring functionality with wide parts
CurtizJ 4bd4ac7
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ c8393f2
fix mutations with mixed-granularity parts
CurtizJ aadb948
temporarly store all parts in compact format
CurtizJ c298616
reduce number of seeks in ReaderCompact
CurtizJ 0b99df9
better column initialization in data parts
CurtizJ 74d5c6e
better writer for compact parts
CurtizJ ccb15e6
better granularity computing
CurtizJ 33ae978
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ 2495849
fix reading of nested columns in compact format
CurtizJ 9752180
fix reading of nested columns in compact format
CurtizJ 6f09b5f
fix reading of nested columns in compact format
CurtizJ bae3aa3
simplify data part checking
CurtizJ 1011675
avoid errors with compact non-adaptive parts
CurtizJ f156962
add part type to system.parts table
CurtizJ 18eacfe
ignore compact parts in MergeTreeWhereOptimizer
CurtizJ ce914cb
refactor code near MergeTreeDataPart
CurtizJ 27750f0
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ b3bd306
improve performance of compact parts
CurtizJ 3ff8f42
remove almost useless columns sizes from compact parts
CurtizJ 7a549b2
implement 'checkConsistency' method in compact parts
CurtizJ 2797873
code cleanup
CurtizJ b0906ab
code cleanup
CurtizJ d073187
fix mutations
CurtizJ 6a29525
add some comments
CurtizJ 1370987
add some tests
CurtizJ 9275225
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ 8183a79
make all parts wide by default
CurtizJ 771e429
fix tests
CurtizJ 2d7ff40
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ 257bb3b
add comments near DataPart code
CurtizJ a0635ed
better marks reading
CurtizJ 1785b27
fix build
CurtizJ 31c39c8
fix mutations
CurtizJ 2f9f5df
better initialization of MergedBlockOutputStream
CurtizJ 2780250
better code near data part writer
CurtizJ c72c38a
require strict part type in MergeTreeReaders
CurtizJ b26a8b5
choose part type while selecting parts to merge
CurtizJ 59c4f53
fix polymorphic parts fetching
CurtizJ 64e1883
better replication with compact parts
CurtizJ 6e1734f
remove rarely used createPart overload
CurtizJ d39179b
add integration tests
CurtizJ ddb3a55
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ 73b1ac0
add integration tests for polymorphic parts
CurtizJ cb9936c
better checking if we can use polymorphic parts
CurtizJ 1612fef
better test
CurtizJ 2359299
comments and refactoring
CurtizJ 6bc5d98
tests for compact parts
CurtizJ 3f7f13c
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
CurtizJ 1950923
Merge branch 'master' into polymorphic-parts
alexey-milovidov b736029
Update ErrorCodes.cpp
CurtizJ File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
#include <Interpreters/ExpressionActions.h> | ||
|
||
namespace DB | ||
{ | ||
struct AlterAnalysisResult | ||
{ | ||
/// Expression for column type conversion. | ||
/// If no conversions are needed, expression=nullptr. | ||
ExpressionActionsPtr expression = nullptr; | ||
|
||
/// Denotes if metadata must be changed even if no file should be overwritten | ||
/// (used for transformation-free changing of Enum values list). | ||
bool force_update_metadata = false; | ||
|
||
std::map<String, const IDataType *> new_types; | ||
|
||
/// For every column that need to be converted: source column name, | ||
/// column name of calculated expression for conversion. | ||
std::vector<std::pair<String, String>> conversions; | ||
NamesAndTypesList removed_columns; | ||
Names removed_indices; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks dangerous because it neither checks nor resizes the array.