-
Notifications
You must be signed in to change notification settings - Fork 90
[ISSUE #94] Feat sequence #211
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
[ISSUE #94] Feat sequence #211
Conversation
Codecov Report
@@ Coverage Diff @@
## master #211 +/- ##
==========================================
- Coverage 36.92% 36.72% -0.21%
==========================================
Files 83 86 +3
Lines 12999 13178 +179
==========================================
+ Hits 4800 4839 +39
- Misses 7596 7730 +134
- Partials 603 609 +6
Continue to review full report at Codecov.
|
pkg/proto/sequence.go
Outdated
// Sequence returns the Sequence of table. | ||
Sequence(ctx context.Context, table string) (Sequence, error) | ||
type SequenceManager interface { | ||
// CreateSequence create sequence instance |
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.
create = creates
if err != nil { | ||
if !errors.Is(err, sequence.ErrorNotFoundSequence) { | ||
return err | ||
} | ||
} |
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 !errors.Is(err, sequence.ErrorNotFoundSequence) {
return err
}
this will be better
} | ||
|
||
if seq != nil { | ||
return nil |
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.
here may be need build a error
* feat: support sequence * feat: none * feat: snowflake seqneuce finish * fix: add sequence unit test * feat: support sequence * chore: remove test.log * fix: fix cr issue * fix: fix integration_test fail * style: fix code style * docs: update code comment * fix: fix pr issue * fix: fix sql scriip style * test: add unit test * docs: fix sql script comment * refactor: update auto_increment to sequence * fix: fix cr issue * refactor: refactor sequence create mgr * style: fmt code style * fix: fix pr issue * docs: fix code comment * fix: fix cr issue
* [ISSUE #94] Feat sequence (#211) * feat: support sequence * feat: none * feat: snowflake seqneuce finish * fix: add sequence unit test * feat: support sequence * chore: remove test.log * fix: fix cr issue * fix: fix integration_test fail * style: fix code style * docs: update code comment * fix: fix pr issue * fix: fix sql scriip style * test: add unit test * docs: fix sql script comment * refactor: update auto_increment to sequence * fix: fix cr issue * refactor: refactor sequence create mgr * style: fmt code style * fix: fix pr issue * docs: fix code comment * fix: fix cr issue * fix: fix sequence create table sql (#266) * fix: compatible with new optimizer structure * fix ut * fix: fix sequence bug (#302) * fix: fix sequence bug * refactor: use lazy creat sequence * style: fix code style * docs: update code comment * fix: fix pr issue * fix: remove unuse test file * Fix new sequence (#316) * fix: fix sequence bug * refactor: use lazy creat sequence * style: fix code style * docs: update code comment * fix: fix pr issue * fix: remove unuse test file * fix: fix snowflake all even number bug * Merge master (#320) * add unit test. (#306) * Add: add Range interface mock. * Add: add test case for iterator. * fix: format import. * fix: fix test case error. * Add: add test case for shard_expr. * Add: add license header. * Add: add new test case. * fix: fix import format. * refactor schemanager cache to lru cache (#246) Co-authored-by: Dong Jianhui <dongjianhui03@meituan.com> * optimize maxAllowedPacket config fix: #292 #281 (#297) * insert multi value at once request, throw error msg when any row error fix: #287 (#313) * feat: support show status (#309) * feat: max_allowed_packet is set by the user (#312) Co-authored-by: Zonglei Dong <dongzonglei@apache.org> Co-authored-by: Mulavar <978007503@qq.com> Co-authored-by: Dong Jianhui <dongjianhui03@meituan.com> Co-authored-by: adair peng <luqiangpeng5945@gmail.com> * style: fix code style * ci: fix ci bug * ci: fix ci bug * ci: fix ci error * fix: fix ci bug * fix: fix runtime.Runtime use Co-authored-by: Jeffsky <jjeffcaii@outlook.com> Co-authored-by: Zonglei Dong <dongzonglei@apache.org> Co-authored-by: Mulavar <978007503@qq.com> Co-authored-by: Dong Jianhui <dongjianhui03@meituan.com> Co-authored-by: adair peng <luqiangpeng5945@gmail.com>
What this PR does:
Which issue(s) this PR fixes:
Fixes #94
Special notes for your reviewer:
Does this PR introduce a user-facing change?: