-
Notifications
You must be signed in to change notification settings - Fork 395
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
[#1707] feat(mysql): Support mysql index. #1715
Conversation
cec9b63
to
d44ab8b
Compare
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Outdated
Show resolved
Hide resolved
* @param fieldNames T. | ||
* @return The primary key index | ||
*/ | ||
public static Index createMysqlPrimaryKey(String[][] fieldNames) { |
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.
It's odd to add a method here, especally createMysqlPrimaryKey
only used for test
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.
Okay, I plan to change the name to not a mandatory field
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.
Please address the comment here.
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.
If mysql doesn't support specify the key name, why don't you either ignore the key name or throw the exception, instead of adding a method here?
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.
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Outdated
Show resolved
Hide resolved
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Show resolved
Hide resolved
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Outdated
Show resolved
Hide resolved
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Show resolved
Hide resolved
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Outdated
Show resolved
Hide resolved
server/src/test/java/com/datastrato/gravitino/server/web/rest/TestTableOperations.java
Show resolved
Hide resolved
common/src/main/java/com/datastrato/gravitino/dto/requests/TableCreateRequest.java
Show resolved
Hide resolved
b86d424
to
413a257
Compare
common/src/main/java/com/datastrato/gravitino/json/JsonUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/datastrato/gravitino/json/JsonUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/datastrato/gravitino/json/JsonUtils.java
Outdated
Show resolved
Hide resolved
...c/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/mysql/CatalogMysqlIT.java
Outdated
Show resolved
Hide resolved
...c/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/mysql/CatalogMysqlIT.java
Outdated
Show resolved
Hide resolved
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Show resolved
Hide resolved
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/datastrato/gravitino/json/JsonUtils.java
Outdated
Show resolved
Hide resolved
clients/client-java/src/test/java/com/datastrato/gravitino/client/TestRelationalCatalog.java
Show resolved
Hide resolved
e1d7d31
to
66bf56a
Compare
...c/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/mysql/CatalogMysqlIT.java
Show resolved
Hide resolved
...c/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/mysql/CatalogMysqlIT.java
Show resolved
Hide resolved
...c/test/java/com/datastrato/gravitino/integration/test/catalog/jdbc/mysql/CatalogMysqlIT.java
Show resolved
Hide resolved
I'm ok to the current implement, please fix the comment and run pass the IT |
ok |
7569855
to
4c7f107
Compare
...sql/src/main/java/com/datastrato/gravitino/catalog/mysql/operation/MysqlTableOperations.java
Outdated
Show resolved
Hide resolved
@jerryshao do you have any other comment? |
### What changes were proposed in this pull request? Support mysql index. ### Why are the changes needed? Fix: apache#1707 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT/IT
What changes were proposed in this pull request?
Support mysql index.
Why are the changes needed?
Fix: #1707
Does this PR introduce any user-facing change?
NO
How was this patch tested?
UT/IT