Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF67817711 for ; Thu, 5 Mar 2015 01:45:45 +0000 (UTC) Received: (qmail 44182 invoked by uid 500); 5 Mar 2015 01:45:39 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 44126 invoked by uid 500); 5 Mar 2015 01:45:39 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 44077 invoked by uid 99); 5 Mar 2015 01:45:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2015 01:45:39 +0000 Date: Thu, 5 Mar 2015 01:45:39 +0000 (UTC) From: "Chun Chang (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2388) support extract(epoch) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Chun Chang created DRILL-2388: --------------------------------- Summary: support extract(epoch) Key: DRILL-2388 URL: https://issues.apache.org/jira/browse/DRILL-2388 Project: Apache Drill Issue Type: Improvement Components: SQL Parser Affects Versions: 0.8.0 Reporter: Chun Chang Assignee: Aman Sinha Priority: Minor Postgres supports the following: {code} SELECT extract(epoch FROM now()); {code} Drill will error: {code} 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> SELECT extract(epoch FROM now()) from sys.drillbits; Query failed: ParseException: Encountered "epoch" at line 1, column 16. Was expecting one of: "YEAR" ... "MONTH" ... "DAY" ... "HOUR" ... "MINUTE" ... "SECOND" ... Error: exception while executing query: Failure while executing query. (state=,code=0) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)