Skip to content

Conversation

@korlov42
Copy link
Contributor

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

@korlov42 korlov42 force-pushed the ignite-21533 branch 2 times, most recently from f840f35 to 1ec38e8 Compare February 14, 2024 16:22

boolean hiddenColumnFound = false;
for (ColumnDescriptor columnDescriptor : desc) {
if (columnDescriptor.hidden()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe It would be better to leave a comment explaining why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added comment in the beginning of the method explaining why do we need to omit hidden columns in INSERT

"'id2,id1', 'id1,id2'",
"'id2,id1', 'id2,id1'",
})
void test(String pkDefinition, String colocateByDefinition) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we check the same for disabled rule for KV optimization?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added 2 more test cases to verify multistep execution

* @param factory Type factory.
* @return Row type for INSERT operation.
*/
RelDataType insertRowType(IgniteTypeFactory factory);
Copy link
Contributor

Choose a reason for hiding this comment

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

these names looks as action for insert something into table. Maybe will be better to rename it, just for example insertionRowType

Copy link
Contributor

Choose a reason for hiding this comment

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

or insertOperationRowType

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to rowTypeForInsert

- add tests to cover multistep operations
- improve definition of test cases in CsvSource annotation
- rename methods of IgniteTable to better reflect semantic
- add comment explaining idea behind hidden columns
@korlov42 korlov42 merged commit 3c4cf8c into apache:main Feb 19, 2024
@korlov42 korlov42 deleted the ignite-21533 branch February 19, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants