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

Allow to attach native masking functions to table columns

    XMLWordPrintableJSON

Details

    • Semantic
    • Normal
    • All
    • None
    • PR CI   trunk j8 [j11 https://app.circleci.com/pipelines/github/adelapena/cassandra/26
    • Hide

      New unit and upgrade tests are included

      Show
      New unit and upgrade tests are included

    Description

      Allow to attach the native masking functions added by CASSANDRA-17941 to table columns, as defined by CEP-20.

      CREATE TABLE statements would look like:

      > CREATE TABLE patients (
            id timeuuid PRIMARY KEY,
            name text MASKED WITH partial(2, 1),
            birth date MASKED WITH default()
            );
      > INSERT INTO patients(id, name, birth) VALUES (now(), 'alice', '1982-12-21);
       
      > SELECT name, birth FROM patients;
       
       name    | birth
      ---------+------------
       alXXXXe | 1900-01-01
      

      ALTER TABLE statements would look like:

      > ALTER TABLE patients ALTER name MASKED WITH partial(2, 1);
      > ALTER TABLE patients ALTER name WITHOUT MASK;
      

      It won't be possible to use masked columns in the WHERE and IF clauses of SELECT and UPDATE statements.

      Attachments

        Issue Links

          Activity

            People

              adelapena Andres de la Peña
              adelapena Andres de la Peña
              Andres de la Peña
              Benjamin Lerer, Berenguer Blasi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 9h 40m
                  9h 40m