-
Notifications
You must be signed in to change notification settings - Fork 99
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-24029 Sql schema. Extend Table API with supporting qualified names #5038
base: main
Are you sure you want to change the base?
Conversation
8a5b0a5
to
12199b2
Compare
89fd016
to
8bb2115
Compare
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.
Public API changes and .NET changes look good to me.
@@ -72,6 +73,18 @@ static BroadcastJobTarget nodes(Set<ClusterNode> nodes) { | |||
* @return Job target. | |||
*/ | |||
static BroadcastJobTarget table(String tableName) { | |||
return new TableJobTarget(tableName); | |||
return table(QualifiedName.parse(tableName)); |
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.
should javadoc will be updated regarding what tableName is?
* Creates a job target for partitioned execution. For each partition in the provided table the job will be executed on a node that | ||
* holds the primary replica. | ||
* | ||
* @param tableName Table name. |
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.
the same, seems it should be mention not just a table name, but a fully qualified table name together with schema
* @param tableName Table name. | ||
*/ | ||
public TableNotFoundException(QualifiedName tableName) { | ||
super(TABLE_NOT_FOUND_ERR, "The table does not exist [name=" + tableName.toCanonicalForm() + ']'); |
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.
can we use the new introduced method for the first constructor?
|
||
/** | ||
* Returns table descriptor by the given table ID and catalog version. |
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.
javadoc is not matched with method signature
@@ -40,115 +40,115 @@ public partial class LinqSqlGenerationTests | |||
|
|||
[Test] | |||
public void TestSelectOneColumn() => | |||
AssertSql("select _T0.KEY from PUBLIC.tbl1 as _T0", q => q.Select(x => x.Key).ToList()); | |||
AssertSql("select _T0.KEY from PUBLIC.TBL1 as _T0", q => q.Select(x => x.Key).ToList()); |
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 don't understand why you changed tablename to uppercase everywhere - SQL is case-insensitive in these cases
5c1be1e
to
3de97f3
Compare
3de97f3
to
406de82
Compare
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
- 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.
Notes