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

[#1707] feat(mysql): Support mysql index. #1715

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

Clearvive
Copy link
Contributor

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

@Clearvive Clearvive added this to the Gravitino 0.4.0 milestone Jan 25, 2024
@Clearvive Clearvive self-assigned this Jan 25, 2024
@Clearvive Clearvive force-pushed the 1707/support-mysql-index branch from cec9b63 to d44ab8b Compare January 26, 2024 06:34
@Clearvive Clearvive requested a review from yuqi1129 January 26, 2024 06:44
@Clearvive Clearvive requested a review from FANNG1 January 26, 2024 08:54
* @param fieldNames T.
* @return The primary key index
*/
public static Index createMysqlPrimaryKey(String[][] fieldNames) {
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image The code will throw an exception. This is just an API utility class.

@Clearvive Clearvive force-pushed the 1707/support-mysql-index branch 3 times, most recently from b86d424 to 413a257 Compare January 26, 2024 14:08
@Clearvive Clearvive requested review from mchades and yuqi1129 January 27, 2024 03:28
@Clearvive Clearvive requested a review from FANNG1 January 27, 2024 03:28
@Clearvive
Copy link
Contributor Author

@mchades @FANNG1 Could you please help to continue the review

@Clearvive Clearvive force-pushed the 1707/support-mysql-index branch from e1d7d31 to 66bf56a Compare January 29, 2024 01:33
@Clearvive Clearvive requested a review from FANNG1 January 29, 2024 01:36
@FANNG1
Copy link
Contributor

FANNG1 commented Jan 29, 2024

I'm ok to the current implement, please fix the comment and run pass the IT

@Clearvive
Copy link
Contributor Author

I'm ok to the current implement, please fix the comment and run pass the IT

ok

@Clearvive Clearvive force-pushed the 1707/support-mysql-index branch from 7569855 to 4c7f107 Compare January 29, 2024 05:58
@Clearvive Clearvive requested review from FANNG1 and jerryshao January 29, 2024 07:39
@FANNG1
Copy link
Contributor

FANNG1 commented Jan 29, 2024

@jerryshao do you have any other comment?

@Clearvive Clearvive merged commit 11fbe5e into apache:main Jan 29, 2024
12 checks passed
ch3yne pushed a commit to ch3yne/gravitino that referenced this pull request Jan 29, 2024
### 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
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.

[Subtask] Support MySQL index
5 participants