You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Abdullah Alamoudi (JIRA)" <ji...@apache.org> on 2016/07/24 18:27:20 UTC
[jira] [Resolved] (ASTERIXDB-1269) UDF body has to be in different
lines from the wrapping parens
[ https://issues.apache.org/jira/browse/ASTERIXDB-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Abdullah Alamoudi resolved ASTERIXDB-1269.
------------------------------------------
Resolution: Fixed
> 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: Abdullah Alamoudi
>
> 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}
> drop database test if exists;
> create database test;
> use test;
> create function printName() {
> 'AsterixDB Shared nothing parallel BDMS'
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)