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 8C57317DE4 for ; Mon, 18 May 2015 20:03:00 +0000 (UTC) Received: (qmail 10694 invoked by uid 500); 18 May 2015 20:03:00 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 10640 invoked by uid 500); 18 May 2015 20:03:00 -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 10628 invoked by uid 99); 18 May 2015 20:03:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2015 20:03:00 +0000 Date: Mon, 18 May 2015 20:03:00 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-3136) Binary string literal spaces rejected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Daniel Barclay (Drill) created DRILL-3136: --------------------------------------------- Summary: Binary string literal spaces rejected Key: DRILL-3136 URL: https://issues.apache.org/jira/browse/DRILL-3136 Project: Apache Drill Issue Type: Bug Reporter: Daniel Barclay (Drill) Spaces allowed by standard SQL's grammar in binary string literals are rejected: {noformat} 0: jdbc:drill:zk=local> SELECT X'0F 0F' FROM INFORMATION_SCHEMA.CATALOGS; May 18, 2015 12:55:21 PM org.apache.calcite.sql.validate.SqlValidatorException SEVERE: org.apache.calcite.sql.validate.SqlValidatorException: Binary literal string must contain only characters '0' - '9', 'A' - 'F' May 18, 2015 12:55:21 PM org.apache.calcite.runtime.CalciteException SEVERE: org.apache.calcite.runtime.CalciteContextException: From line 1, column 8 to line 1, column 15: Binary literal string must contain only characters '0' - '9', 'A' - 'F' Error: PARSE ERROR: Binary literal string must contain only characters '0' - '9', 'A' - 'F' [Error Id: 5e09f9b2-2029-4d83-9b3e-048ac5fdcad1 on dev-linux2:31010] (state=,code=0) 0: jdbc:drill:zk=local> {noformat} ISO-8075:2011 Part 2's section 5.3 ("") says: {noformat} ::= X [ ... ] [ { [ ... ] [ ... ] }... ] [ { [ ... ] [ { [ ... ] [ ... ] }... ] }... ] ::= | A | B | C | D | E | F | a | b | c | d | e | f {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)