databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.71k stars 732 forks source link

chore: simplify get_sequence() and get_sequence_next_value() #16463

Closed drmingdrmer closed 1 week ago

drmingdrmer commented 1 week ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

chore: simplify get_sequence() and get_sequence_next_value()
refactor: simplify get_sequence() API to return Option instead of Result
chore: replace manually defined Sequence error with Unknown/Exist Error with generic
chore: add test to SequenceIdent

Tests

Type of change

Related Issues


This change isโ€‚Reviewable