Details
-
New Feature
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
This is a list of trivial features for Sequence (originally mentioned as part of MDEV-13005)
- Support syntax "CREATE SEQUENCE x AS <some_int_type>';
<some_int_type> can mean all the integers that we support
Currently (as per documentation) maximum value that sequence can support is 9223372036854775806.
But unsigned bigint can have maximum (unsigned) value: 18446744073709551615
So adding support for this maximum (unsigned) value is needed.
Also, set maximum minimum based on the datatype
- Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use
MAXVALUE 9999999999999999999999999999 in Oracle examples.
- Create information_schema.sequences that lists all sequences and their information. Should work similar to views:
select * from information_schema.sequences where table_schema="test";
The column names are:
SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE
Some suggested values:
DATA_TYPE BIGINT
DECLARED_DATA_TYPE BIGINT
NUMERIC_PRECISION 19
NUMERIC_PRECISION_RADIX 10
DECLARED_DATA_TYPE NULL
DECLARED_NUMERIC_PRECISION NULL
DECLARED_NUMERIC_SCALE NULL
Attachments
Issue Links
- causes
-
MDEV-33012 Alter sequence with second execution of prepare statement crashes server
-
- Closed
-
-
MDEV-33734 sql_sequence.next fails with UBSAN in buildbot and outside
-
- Closed
-
-
MDEV-33739 Assertion `0' failed in Type_handler_typelib::max_display_length_for_field
-
- Closed
-
-
MDEV-33836 Assertion `(ulonglong) next_free_value % real_increment == (ulonglong) offset' failed in void sequence_definition::adjust_values(longlong)
-
- Closed
-
- is blocked by
-
MDEV-33012 Alter sequence with second execution of prepare statement crashes server
-
- Closed
-
- relates to
-
MDEV-13005 Fixing bugs in SEQUENCE, part 3
-
- Closed
-
-
MDEV-25729 Fetch MariaDB Sequences metadata
-
- Closed
-
-
BLOG-249 Loading...
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Rucha Deodhar [ rucha174 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 10.10 [ 27530 ] |
Fix Version/s | 10.12 [ 28320 ] | |
Fix Version/s | 10.11 [ 27614 ] |
Component/s | Sequences [ 14009 ] | |
Component/s | Server [ 13907 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Description |
This is a list of trivial features for Sequence (originally mentioned as part of * Support syntax "CREATE SEQUENCE x AS BIGINT'; * Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use MAXVALUE 9999999999999999999999999999 in Oracle examples. * Create information_schema.sequences that lists all sequences and their information. Should work similar to views: select * from information_schema.sequences where table_schema="test"; The column names are: SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE Some suggested values: DATA_TYPE BIGINT DECLARED_DATA_TYPE BIGINT NUMERIC_PRECISION 19 NUMERIC_PRECISION_RADIX 10 DECLARED_DATA_TYPE NULL DECLARED_NUMERIC_PRECISION NULL DECLARED_NUMERIC_SCALE NULL |
This is a list of trivial features for Sequence (originally mentioned as part of * Support syntax "CREATE SEQUENCE x AS <some_int_value>'; <some_int_value> can mean all the integers that we support * Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use MAXVALUE 9999999999999999999999999999 in Oracle examples. * Create information_schema.sequences that lists all sequences and their information. Should work similar to views: select * from information_schema.sequences where table_schema="test"; The column names are: SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE Some suggested values: DATA_TYPE BIGINT DECLARED_DATA_TYPE BIGINT NUMERIC_PRECISION 19 NUMERIC_PRECISION_RADIX 10 DECLARED_DATA_TYPE NULL DECLARED_NUMERIC_PRECISION NULL DECLARED_NUMERIC_SCALE NULL |
Description |
This is a list of trivial features for Sequence (originally mentioned as part of * Support syntax "CREATE SEQUENCE x AS <some_int_value>'; <some_int_value> can mean all the integers that we support * Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use MAXVALUE 9999999999999999999999999999 in Oracle examples. * Create information_schema.sequences that lists all sequences and their information. Should work similar to views: select * from information_schema.sequences where table_schema="test"; The column names are: SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE Some suggested values: DATA_TYPE BIGINT DECLARED_DATA_TYPE BIGINT NUMERIC_PRECISION 19 NUMERIC_PRECISION_RADIX 10 DECLARED_DATA_TYPE NULL DECLARED_NUMERIC_PRECISION NULL DECLARED_NUMERIC_SCALE NULL |
This is a list of trivial features for Sequence (originally mentioned as part of * Support syntax "CREATE SEQUENCE x AS <some_int_type>'; <some_int_type> can mean all the integers that we support * Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use MAXVALUE 9999999999999999999999999999 in Oracle examples. * Create information_schema.sequences that lists all sequences and their information. Should work similar to views: select * from information_schema.sequences where table_schema="test"; The column names are: SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE Some suggested values: DATA_TYPE BIGINT DECLARED_DATA_TYPE BIGINT NUMERIC_PRECISION 19 NUMERIC_PRECISION_RADIX 10 DECLARED_DATA_TYPE NULL DECLARED_NUMERIC_PRECISION NULL DECLARED_NUMERIC_SCALE NULL |
Description |
This is a list of trivial features for Sequence (originally mentioned as part of * Support syntax "CREATE SEQUENCE x AS <some_int_type>'; <some_int_type> can mean all the integers that we support * Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use MAXVALUE 9999999999999999999999999999 in Oracle examples. * Create information_schema.sequences that lists all sequences and their information. Should work similar to views: select * from information_schema.sequences where table_schema="test"; The column names are: SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE Some suggested values: DATA_TYPE BIGINT DECLARED_DATA_TYPE BIGINT NUMERIC_PRECISION 19 NUMERIC_PRECISION_RADIX 10 DECLARED_DATA_TYPE NULL DECLARED_NUMERIC_PRECISION NULL DECLARED_NUMERIC_SCALE NULL |
This is a list of trivial features for Sequence (originally mentioned as part of * Support syntax "CREATE SEQUENCE x AS <some_int_type>'; <some_int_type> can mean all the integers that we support Currently (as per documentation) maximum value that sequence can support is 9223372036854775806. But unsigned bigint can have maximum (unsigned) value: 18446744073709551615 So adding support for this maximum (unsigned) value is needed. Also, set maximum minimum based on the datatype * Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use MAXVALUE 9999999999999999999999999999 in Oracle examples. * Create information_schema.sequences that lists all sequences and their information. Should work similar to views: select * from information_schema.sequences where table_schema="test"; The column names are: SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE Some suggested values: DATA_TYPE BIGINT DECLARED_DATA_TYPE BIGINT NUMERIC_PRECISION 19 NUMERIC_PRECISION_RADIX 10 DECLARED_DATA_TYPE NULL DECLARED_NUMERIC_PRECISION NULL DECLARED_NUMERIC_SCALE NULL |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Oleksandr Byelkin [ sanja ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Oleksandr Byelkin [ sanja ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Fix Version/s | 11.1 [ 28549 ] | |
Fix Version/s | 11.0 [ 28320 ] |
Comment |
[ Hi Ralf,
What does this change mean? Best, Yuchen ] |
Fix Version/s | 11.2 [ 28603 ] | |
Fix Version/s | 11.1 [ 28549 ] |
Fix Version/s | 11.3 [ 28565 ] | |
Fix Version/s | 11.2 [ 28603 ] |
Fix Version/s | 11.4 [ 29301 ] | |
Fix Version/s | 11.3 [ 28565 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Lena Startseva [ JIRAUSER50478 ] |
Issue Type | Task [ 3 ] | New Feature [ 2 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Link |
This issue causes |
Assignee | Lena Startseva [ JIRAUSER50478 ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Link |
This issue is blocked by |
Fix Version/s | 11.5 [ 29506 ] | |
Fix Version/s | 11.4 [ 29301 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Lena Startseva [ JIRAUSER50478 ] |
Assignee | Lena Startseva [ JIRAUSER50478 ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Fix Version/s | 11.5.1 [ 29634 ] | |
Fix Version/s | 11.5 [ 29506 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Link | This issue is part of TODO-4630 [ TODO-4630 ] |
Link |
This issue causes |
Link |
This issue causes |
Link |
This issue causes |
Remote Link | This issue links to "BLOG-249 (Jira)" [ 37227 ] |
Initial version of the second item done: https://github.com/MariaDB/server/commit/84675ed91f4, where for consistency we
1. truncate not only decimals, but also ulonglong, -ulonglong, LONGLONG_MAX and LONGLONG_MIN
2. truncate not only maxvalue but also minvalue (obviously)
Now working on the first item.