Skip to content
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

IGNITE-19103: Sql. Change implicit primary key column's type to UUID. #3786

Merged
merged 4 commits into from
May 22, 2024

Conversation

lowka
Copy link
Contributor

@lowka lowka commented May 17, 2024

Changes type of implicit PK to UUID.
Removes gen_random_uuid function.

https://issues.apache.org/jira/browse/IGNITE-19103


Thank you for submitting the pull request.

To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:

The Review Checklist

  • Formal criteria: TC status, codestyle, mandatory documentation. Also make sure to complete the following:
    - There is a single JIRA ticket related to the pull request.
    - The web-link to the pull request is attached to the JIRA ticket.
    - The JIRA ticket has the Patch Available state.
    - The description of the JIRA ticket explains WHAT was made, WHY and HOW.
    - The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • Design: new code conforms with the design principles of the components it is added to.
  • Patch quality: patch cannot be split into smaller pieces, its size must be reasonable.
  • Code quality: code is clean and readable, necessary developer documentation is added if needed.
  • Tests code quality: test set covers positive/negative scenarios, happy/edge cases. Tests are effective in terms of execution time and resources.

Notes

@lowka lowka force-pushed the ignite-19103 branch 6 times, most recently from c4a50f9 to 21cec3a Compare May 20, 2024 09:57
@lowka lowka marked this pull request as ready for review May 21, 2024 09:57
/**
* Check if provided default value is a constant or a functional default of supported function, or fail otherwise.
*/
static void ensureSupportedDefault(String columnName, @Nullable DefaultValue defaultValue) {
static void ensureSupportedDefault(String columnName, @Nullable DefaultValue defaultValue, ColumnType columnType) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
static void ensureSupportedDefault(String columnName, @Nullable DefaultValue defaultValue, ColumnType columnType) {
static void ensureSupportedDefault(String columnName, ColumnType columnType, @Nullable DefaultValue defaultValue) {

to simplify future merge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.


LENGTH(IgniteSqlFunctions.class, "length", Object.class),

OCTET_LENGTH(IgniteSqlFunctions.class, "octetLength", ByteString.class),
OCTET_LENGTH2(IgniteSqlFunctions.class, "octetLength", String.class),

/** See {@link IgniteSqlFunctions#genRandomUuid()}. */
// TODO This function should removed when https://issues.apache.org/jira/browse/IGNITE-19103 is complete.
GEN_RANDOM_UUID(IgniteSqlFunctions.class, "genRandomUuid"),
Copy link
Contributor

@xtern xtern May 22, 2024

Choose a reason for hiding this comment

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

please remove this method from IgniteSqlFunctions class as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@xtern xtern merged commit 16caf8f into apache:main May 22, 2024
1 check passed
@xtern xtern deleted the ignite-19103 branch May 22, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants