-
Notifications
You must be signed in to change notification settings - Fork 135
IGNITE-16665 Introduced integer table id. #952
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
Signed-off-by: ibessonov <bessonov.ip@gmail.com>
Signed-off-by: ibessonov <bessonov.ip@gmail.com>
Signed-off-by: ibessonov <bessonov.ip@gmail.com>
Signed-off-by: ibessonov <bessonov.ip@gmail.com>
SammyVimes
left a comment
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 good to me
| @Immutable | ||
| @Range(min = 1, max = Integer.MAX_VALUE) | ||
| @Value(hasDefault = true) | ||
| public int intId = 1; |
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.
Why such a name? seems to be more correct just id.
Why such a range?
Can we use UUID as an identifier?
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.
UUID is already a main "globally unique" identifier. This one - I'm not sure about the name, honestly. Field named "id" already exists.
| public class TablesConfigurationSchema { | ||
| /** Global integer id counter. */ | ||
| @Value(hasDefault = true) | ||
| public int globalIdCounter = 0; |
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.
Is this the global table identifier? why is it not clearly named? what happens if it overflows?
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.
I'l expand the comment
| * @param grpName Group name. | ||
| * @param grpId Group ID. | ||
| * @param tableName Table name. | ||
| * @param groupId Integer table id. |
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.
tableId ?
Signed-off-by: ibessonov <bessonov.ip@gmail.com>
Signed-off-by: ibessonov <bessonov.ip@gmail.com>
https://issues.apache.org/jira/browse/IGNITE-16665