-
Notifications
You must be signed in to change notification settings - Fork 694
Support PG types in schemeshard #11023
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
Conversation
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
@@ -6,7 +6,6 @@ namespace NKikimr { | |||
namespace NSchemeShard { | |||
|
|||
static bool IsIntegerType(NScheme::TTypeInfo type) { | |||
// TODO: support pg types |
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.
Generic not-only-integer realization is enough. Tested in SplitShardsWhithPgKey test.
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.
Its enough to work but not enough to work well.
Below in the same file IsIntegerType()
is used to choose between fast and slow branches for split prefix search. And failing to support integer pg types as integer forces ChooseSplitKeyByHistogram()
to choose the slow pass.
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.
Yes, support for this optimization requires the ability to increment a value of integer pg type which is not currently supported. I'll do it in separate issue: #11168
MinPartitionsCount: 100 | ||
MaxPartitionsCount: 100 | ||
SizeToSplit: 1 | ||
FastSplitSettings { |
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.
Use of FastSplitSettings
was removed from split-merge code quite some time ago. So it is meaningless to specify them in tests.
There are still some not updated tests (and they surprisingly continue to work ok), but new tests should not employ FastSplitSettings
.
@@ -6,7 +6,6 @@ namespace NKikimr { | |||
namespace NSchemeShard { | |||
|
|||
static bool IsIntegerType(NScheme::TTypeInfo type) { | |||
// TODO: support pg types |
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.
Its enough to work but not enough to work well.
Below in the same file IsIntegerType()
is used to choose between fast and slow branches for split prefix search. And failing to support integer pg types as integer forces ChooseSplitKeyByHistogram()
to choose the slow pass.
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
Changelog entry
Changelog category
Additional information
...