asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yingyi Bu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-1269) UDF body has to be in different lines from the wrapping parens
Date Tue, 19 Jan 2016 05:29:39 GMT
Yingyi Bu created ASTERIXDB-1269:
------------------------------------

             Summary: UDF body has to be in different lines from the wrapping parens
                 Key: ASTERIXDB-1269
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1269
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: Translator - AQL
            Reporter: Yingyi Bu
            Assignee: Yingyi Bu


The following query will fail the parser because the function body stays in the same line
of the wrapping parens. The parser thinks the wrapping parens are part of the declared UDF
body.

{noformat}
drop database test if exists;
create database test;
use test;

create function printName() { 'AsterixDB Shared nothing parallel BDMS' }
{noformat}

This alternative works:
{noformat}
{noformat}
drop database test if exists;
create database test;
use test;

create function printName() { 
  'AsterixDB Shared nothing parallel BDMS' 
}
{noformat}
{noformat}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message