[ https://issues.apache.org/jira/browse/CASSANDRA-17941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17679988#comment-17679988 ]
Andres de la Peña commented on CASSANDRA-17941: ----------------------------------------------- Following the discussion on the PR about the return data types and the progress on CASSANDRA-18068 (almost ready!), I have done some changes on the behaviour of the functions: * {{mask_inner}} and {{mask_default}} only accept string-based values (text, ascii and varchar). The return value will be always be of the same type as the masked input. * {{mask_replace}} requires that the replaced value and its replacement have the same type, so the return value will be always be of the same type as the masked input. These restrictions make that all the functions but {{mask_hash}} return values of the same value as their input. It also allows to make the functions a bit smarter when dealing with compatible types, like masking a {{text}} value by replacing it with an {{ascii}} value, so we don't need type hints in most cases. ||PR||CI|| |[trunk|https://github.com/apache/cassandra/pull/1892]|[j8|https://app.circleci.com/pipelines/github/adelapena/cassandra/2580/workflows/85776fef-728c-407f-94af-cfbf0ddc6f87] [j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/2580/workflows/03d1ee80-5c95-44f5-ba17-4343c5f143b1]| > CQL data masking functions > -------------------------- > > Key: CASSANDRA-17941 > URL: https://issues.apache.org/jira/browse/CASSANDRA-17941 > Project: Cassandra > Issue Type: New Feature > Components: Feature/Dynamic Data Masking > Reporter: Andres de la Peña > Assignee: Andres de la Peña > Priority: Normal > Fix For: 4.x > > Time Spent: 50m > Remaining Estimate: 0h > > Add native CQL functions to mask the contents of a column, as described in > [CEP-20|https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-20%3A+Dynamic+Data+Masking]. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org