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-24033 Sql schema. Extend Compute API with supporting qualified names #5102

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

zstan
Copy link
Contributor

@zstan zstan commented Jan 23, 2025

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

@@ -215,9 +216,11 @@ private <T, R> CompletableFuture<SubmitResult> submit0(JobTarget target, JobDesc
var mapper = (Mapper<? super Object>) colocatedTarget.keyMapper();

if (mapper != null) {
return doExecuteColocatedAsync(colocatedTarget.tableName(), colocatedTarget.key(), mapper, descriptor, arg);
// need to be fixed after: https://issues.apache.org/jira/browse/IGNITE-24301 Fix Thin client protocol to use schema name
return doExecuteColocatedAsync(quoteIfNeeded(colocatedTarget.tableName()), colocatedTarget.key(), mapper, descriptor, arg);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can`t use "quote" here cause this method processed recursively and appends additional quotation in such a case

zstan added 2 commits January 24, 2025 17:24
@@ -197,10 +197,10 @@ public void testExecuteColocatedThrowsTableNotFoundExceptionWhenTableDoesNotExis

var ex = assertThrows(CompletionException.class,
() -> client.compute().executeAsync(
JobTarget.colocated("\"bad-tbl\"", key), JobDescriptor.builder("job").build(), null).join());
JobTarget.colocated("\"bad_tbl\"", key), JobDescriptor.builder("job").build(), null).join());
Copy link
Member

Choose a reason for hiding this comment

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

Please revert, or add a test that quoted names work on client and embedded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

@zstan zstan merged commit 0b3fc07 into apache:main Jan 27, 2025
1 check passed
@zstan zstan deleted the ignite-24033 branch January 27, 2025 14: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.

2 participants