Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9542

Create UDA does not recognize built-in functions without specifying system keyspace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.0 rc2
    • None
    • None
    • Low

    Description

      I'd expect when creating a UDA not to have to specify the system keyspace when using a built-in function for the state or final function. For example:

      CREATE AGGREGATE if not exists ks.my_agg(int) 
      SFUNC ks.adder
      STYPE int
      FINALFUNC intasblob
      ;
      

      Gives me me the error:

      Final function ks.intasblob(int) does not exist or is not a scalar function

      Prefixing with 'system.' fixes the issue. But I was expecting it to resolve as if I were using a built in function elsewhere.

      Attachments

        1. 9542.txt
          14 kB
          Robert Stupp

        Issue Links

          Activity

            People

              snazy Robert Stupp
              zackurey Zachary Kurey
              Robert Stupp
              Aleksey Yeschenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: