{"action":"created","issue":{"url":"https://api.github.com/repos/apache/trafodion/issues/1481","repository_url":"https://api.github.com/repos/apache/trafodion","labels_url":"https://api.github.com/repos/apache/trafodion/issues/1481/labels{/name}","comments_url":"https://api.github.com/repos/apache/trafodion/issues/1481/comments","events_url":"https://api.github.com/repos/apache/trafodion/issues/1481/events","html_url":"https://github.com/apache/trafodion/pull/1481","id":306321494,"number":1481,"title":"[Trafodion-2335] support functions in the column default definition","user":{"login":"traflm","id":12948514,"avatar_url":"https://avatars3.githubusercontent.com/u/12948514?v=4","gravatar_id":"","url":"https://api.github.com/users/traflm","html_url":"https://github.com/traflm","followers_url":"https://api.github.com/users/traflm/followers","following_url":"https://api.github.com/users/traflm/following{/other_user}","gists_url":"https://api.github.com/users/traflm/gists{/gist_id}","starred_url":"https://api.github.com/users/traflm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traflm/subscriptions","organizations_url":"https://api.github.com/users/traflm/orgs","repos_url":"https://api.github.com/users/traflm/repos","events_url":"https://api.github.com/users/traflm/events{/privacy}","received_events_url":"https://api.github.com/users/traflm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-19T03:23:05Z","updated_at":"2018-03-21T08:26:34Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/trafodion/pulls/1481","html_url":"https://github.com/apache/trafodion/pull/1481","diff_url":"https://github.com/apache/trafodion/pull/1481.diff","patch_url":"https://github.com/apache/trafodion/pull/1481.patch"},"body":"This PR add the support in column default definition the expansion to use following functions:\r\nuuid\r\nunix_timestamp\r\nto_char\r\n\r\nTo support to_char, it saves the original text of full to_char function, and save it as DEFAULT_VALUE in \"_MD_\".COLUMNS. \r\nAnd the INSERT binder will get this original string, and parse into the ItemExpr tree.\r\n\r\nThe semantic check is done in setDefaultAttribute.\r\n\r\nUUID/UNIX_TIMESTAMP follow the current_timestamp implementation.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/trafodion/issues/comments/374863147","html_url":"https://github.com/apache/trafodion/pull/1481#issuecomment-374863147","issue_url":"https://api.github.com/repos/apache/trafodion/issues/1481","id":374863147,"user":{"login":"Traf-Jenkins","id":12548626,"avatar_url":"https://avatars2.githubusercontent.com/u/12548626?v=4","gravatar_id":"","url":"https://api.github.com/users/Traf-Jenkins","html_url":"https://github.com/Traf-Jenkins","followers_url":"https://api.github.com/users/Traf-Jenkins/followers","following_url":"https://api.github.com/users/Traf-Jenkins/following{/other_user}","gists_url":"https://api.github.com/users/Traf-Jenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/Traf-Jenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Traf-Jenkins/subscriptions","organizations_url":"https://api.github.com/users/Traf-Jenkins/orgs","repos_url":"https://api.github.com/users/Traf-Jenkins/repos","events_url":"https://api.github.com/users/Traf-Jenkins/events{/privacy}","received_events_url":"https://api.github.com/users/Traf-Jenkins/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T08:26:34Z","updated_at":"2018-03-21T08:26:34Z","author_association":"NONE","body":"Test Passed.  https://jenkins.esgyn.com/job/Check-PR-master/2505/\n"}}
{"actor":{"display_login":"Traf-Jenkins"}}