Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1269

UDF body has to be in different lines from the wrapping parens

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • AQL - Translator AQL
    • None

    Description

      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.

      drop database test if exists;
      create database test;
      use test;
      
      create function printName() { 'AsterixDB Shared nothing parallel BDMS' }
      

      This alternative works:

      drop database test if exists;
      create database test;
      use test;
      
      create function printName() { 
        'AsterixDB Shared nothing parallel BDMS' 
      }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            amoudi Abdullah Alamoudi
            buyingyi Yingyi Bu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment