Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9424 Schema Improvements
  3. CASSANDRA-9665

Improve handling of UDF and UDA metadata

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0 alpha 1
    • None
    • None

    Description

      A while ago we decided to make all functions and types keyspace local, but haven't updated our assumption in the code accordingly.

      One consequence is that in addition to Schema and KSMetaData we got ourselves a completely separate registry singleton for built-in functions, UDFs, and UDAs - the Functions class.

      The linked branch makes UDAs and UDFs be a part of KSMetaData, as they should be, and gets rid of the old Functions class.

      A new Functions class is introduced - an immutable container for a given keyspace's functions, and all the definitions are now spread between the keyspaces.

      Additionally, this moves all the built-in functions to SystemKeyspace. This sneaks in a bit of CASSANDRA-9425, makes CASSANDRA-9367 easier, and is a minore pre-requisite for a proper implementation of CASSANDRA-6717.

      Attachments

        Issue Links

          Activity

            People

              aleksey Aleksey Yeschenko
              aleksey Aleksey Yeschenko
              Aleksey Yeschenko
              Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: