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

Pass base table's metadata to Index.validateOptions

    XMLWordPrintableJSON

Details

    Description

      Some custom index implementations require the base table's metadata to validate their creation options. For example, the options of these implementations can contain information about which base table's columns are going to be indexed and how, so the implementation needs to know the existence and the type of the columns to be indexed to properly validate.

      The attached patch proposes to add base table's CFMetaData to Index' optional static method to validate the custom index options:
      public static Map<String, String> validateOptions(CFMetaData cfm, Map<String, String> options);

      Attachments

        1. CASSANDRA-10924-v0.diff
          7 kB
          Andres de la Peña
        2. CASSANDRA-10924-v1.diff
          7 kB
          Andres de la Peña

        Activity

          People

            adelapena Andres de la Peña
            adelapena Andres de la Peña
            Andres de la Peña
            Sam Tunnicliffe
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: