Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
To make it easier for users to migrate from systems which allow table without PK, let's introduce an ability to create tables with PK whose value is autogenerated by system function. The syntax could look like this:
CREATE TABLE my_table (id UUID DEFAULT gen_random_uuid PRIMARY KEY, <other columns>)
Where gen_random_uuid is a system function returning a random UUID value.
Within this ticket we need to update grammar for CREATE TABLE operation and make all sql-runtime related changes to properly handle such default values.
Attachments
Issue Links
- is blocked by
-
IGNITE-16870 Extend Schema with ability to specify function as default value generator
- Resolved
- links to