[
https://issues.apache.org/jira/browse/IGNITE-5623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298295#comment-16298295
]
ASF GitHub Bot commented on IGNITE-5623:
----------------------------------------
GitHub user tledkov-gridgain opened a pull request:
https://github.com/apache/ignite/pull/3256
IGNITE-5623: add support for DEFAULT value on CREATE TABLE
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-5623
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/3256.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3256
----
commit fe658c09727ad7c65bdc2f913c4d33e9f0678613
Author: tledkov-gridgain <tledkov@...>
Date: 2017-12-18T09:47:15Z
IGNITE-5623: add support for DEFAULT value on CREATE TABLE
----
> DDL needs to support DEFAULT operator
> --------------------------------------
>
> Key: IGNITE-5623
> URL: https://issues.apache.org/jira/browse/IGNITE-5623
> Project: Ignite
> Issue Type: Task
> Components: sql
> Affects Versions: 2.0
> Reporter: Denis Magda
> Assignee: Taras Ledkov
> Labels: important
> Fix For: 2.4
>
>
> There should be a way to set a default value for a column/field if the one is
> not specified during an insert operation. In general, we need to support
> {{<field> DEFAULT <value>}} in a way it's show below:
> {code}
> CREATE TABLE Persons (
> ID int,
> FirstName varchar(255),
> Age int,
> City varchar(255) DEFAULT 'Sandnes'
> );
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)