Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-34985

Inline functions: unable to call a function containing : symbol in code

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Build: 6.5.0-3708

      Trying to create those functions:

       

      create function func1() {(select 'beer' from system:dual)}
      

      SUCCESS

       

      create function external_func() {(select distinct(type) from `beer-sample` where type=get_type())}
      

      SUCCESS

      But when I'm calling function:

      select external_func()

      It gives me empty list of results, which is incorrect since

       

      select distinct(type) from `beer-sample` where type='beer'
      

      should return type:'beer'

       select get_type()
      

       

      gives me an error:

       

      [
       {
       "code": 5010,
       "msg": "Error evaluating projection. - cause: Could not decode body function definition for get_type because syntax error - at : - cause: syntax error - at :"
       }
      ]
       
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            evgeny.makarenko Evgeny Makarenko (Inactive)
            evgeny.makarenko Evgeny Makarenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty