GitHub user traflm opened a pull request:

    https://github.com/apache/trafodion/pull/1481

    [Trafodion-2335] support functions in the column default definition

    This PR add the support in column default definition the expansion to use 
following functions:
    uuid
    unix_timestamp
    to_char
    
    To support to_char, it saves the original text of full to_char function, 
and save it as DEFAULT_VALUE in "_MD_".COLUMNS. 
    And the INSERT binder will get this original string, and parse into the 
ItemExpr tree.
    
    The semantic check is done in setDefaultAttribute.
    
    UUID/UNIX_TIMESTAMP follow the current_timestamp implementation.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/traflm/trafodion TRAFODION-2335

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafodion/pull/1481.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 #1481
    
----
commit 6b800c34a4f9cb4386223067ff7c3801bdbec002
Author: Liu Ming <ovis_poly@...>
Date:   2018-03-14T09:07:42Z

    [TRAFODION-2335] support some functions as column default, part1 commit

commit 5f58cd95aa72f4cbe944aa8d0aeb11eb0202f524
Author: Liu Ming <ovis_poly@...>
Date:   2018-03-18T09:19:35Z

    update the regression test and various fixes

----


---

Reply via email to