Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 64FE7200CCC for ; Fri, 7 Jul 2017 01:04:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6392A167A44; Thu, 6 Jul 2017 23:04:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A9901167A3E for ; Fri, 7 Jul 2017 01:04:33 +0200 (CEST) Received: (qmail 90792 invoked by uid 500); 6 Jul 2017 23:04:32 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 90781 invoked by uid 99); 6 Jul 2017 23:04:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2017 23:04:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 24366C05A7 for ; Thu, 6 Jul 2017 23:04:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cEkDm-UxbO40 for ; Thu, 6 Jul 2017 23:04:31 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 40DD75FD0C for ; Thu, 6 Jul 2017 23:04:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v66N4Top007502; Thu, 6 Jul 2017 23:04:29 GMT Message-Id: <201707062304.v66N4Top007502@ip-10-146-233-104.ec2.internal> Date: Thu, 6 Jul 2017 23:04:29 +0000 From: "Matthew Jacobs (Code Review)" To: Bikramjeet Vig , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Henry Robinson , Jim Apple , Dan Hecht Reply-To: mj@cloudera.com X-Gerrit-MessageType: merged Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-3504=3A_UDF_for_current_timestamp_in_UTC=0A?= X-Gerrit-Change-Id: I969fc805922f2bb9c8101e84f85ff2cc3b1b6729 X-Gerrit-ChangeURL: X-Gerrit-Commit: 9037b8e38598a9710cd2dfcf30b9fd353bdf6191 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Thu, 06 Jul 2017 23:04:34 -0000 Matthew Jacobs has submitted this change and it was merged. Change subject: IMPALA-3504: UDF for current timestamp in UTC ...................................................................... IMPALA-3504: UDF for current timestamp in UTC This change adds a UDF "utc_timestamp" which returns the current date and time in UTC. Example query: select utc_timestamp(); +-------------------------------+ | utc_timestamp() | +-------------------------------+ | 2017-06-15 17:36:39.290773000 | +-------------------------------+ Change-Id: I969fc805922f2bb9c8101e84f85ff2cc3b1b6729 Reviewed-on: http://gerrit.cloudera.org:8080/7203 Tested-by: Impala Public Jenkins Reviewed-by: Matthew Jacobs --- M be/src/exprs/expr-test.cc M be/src/exprs/timestamp-functions-ir.cc M be/src/exprs/timestamp-functions.h M be/src/runtime/runtime-state.cc M be/src/runtime/runtime-state.h M be/src/runtime/timestamp-value.h M be/src/service/impala-server.cc M common/function-registry/impala_functions.py M common/thrift/ImpalaInternalService.thrift M fe/src/test/java/org/apache/impala/testutil/TestUtils.java 10 files changed, 73 insertions(+), 5 deletions(-) Approvals: Impala Public Jenkins: Verified Matthew Jacobs: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/7203 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I969fc805922f2bb9c8101e84f85ff2cc3b1b6729 Gerrit-PatchSet: 8 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Bikramjeet Vig Gerrit-Reviewer: Bikramjeet Vig Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Impala Public Jenkins Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Matthew Jacobs