Repository navigation
change gen uuid method to v7 - #13857
Merged
Merged
Conversation
YANGGMM
requested review from
LeftHandCold,
XuPeng-SH,
aunjgr,
badboynt1,
daviszhen,
m-schen,
nnsgmsone,
ouyuanning,
qingxinhome,
reusee,
sukki37 and
zhangxu19830126
as code owners
December 27, 2023 06:35
This comment was marked as off-topic.
This comment was marked as off-topic.
reusee
approved these changes
Dec 27, 2023
aunjgr
approved these changes
Dec 27, 2023
sukki37
previously approved these changes
Dec 27, 2023
sukki37
reviewed
Dec 27, 2023
sukki37
left a comment
Contributor
There was a problem hiding this comment.
Could you please provide some additional test data
Contributor
Author
ok |
Contributor
Author
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| unix_ts_ms |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| unix_ts_ms | ver | rand_a |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|var| rand_b |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| rand_b |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/测试代码 func Test_UUIDWhetherInOrder(t *testing.T) {
uuidStrs := make([]string, 0, 10000)
uuidStrComps := make([]string, 0, 10000)
for i := 0; i < 10000; i++ {
uid, err := uuid.NewV7()
assert.NoError(t, err)
uuidStrs = append(uuidStrs, uid.String())
uuidStrComps = append(uuidStrComps, uid.String())
time.Sleep(time.Millisecond)
}
sort.Strings(uuidStrComps)
assert.Equal(t, uuidStrComps, uuidStrs)
} |
nnsgmsone
approved these changes
Dec 28, 2023
LeftHandCold
approved these changes
Dec 28, 2023
XuPeng-SH
approved these changes
Dec 28, 2023
m-schen
approved these changes
Dec 28, 2023
daviszhen
approved these changes
Dec 28, 2023
qingxinhome
approved these changes
Dec 28, 2023
ouyuanning
approved these changes
Jan 2, 2024
gavinyue
approved these changes
Jan 2, 2024
sukki37
approved these changes
Jan 4, 2024
YANGGMM
added a commit
to YANGGMM/matrixone
that referenced
this pull request
Jan 22, 2024
change gen uuid method to v7 now just change for somekey methods not include the test file Approved by: @reusee, @aunjgr, @sukki37, @nnsgmsone, @LeftHandCold, @XuPeng-SH, @zhangxu19830126, @m-schen, @daviszhen, @qingxinhome, @ouyuanning, @gavinyue
fengttt
pushed a commit
to fengttt/matrixone
that referenced
this pull request
May 7, 2026
change gen uuid method to v7 now just change for somekey methods not include the test file Approved by: @reusee, @aunjgr, @sukki37, @nnsgmsone, @LeftHandCold, @XuPeng-SH, @zhangxu19830126, @m-schen, @daviszhen, @qingxinhome, @ouyuanning, @gavinyue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What type of PR is this?
Which issue(s) this PR fixes:
issue #13576
What this PR does / why we need it:
change gen uuid method to v7
now just change for somekey methods not include the test file