# US 10,956,406 B2 · Propagated deletion of database records and derived data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,406 B2
- Document ID: US10956406B2
- Status: Granted
- Kind: B2
- Application number: 15/990,338
- Filed: 2018-05-25
- Published: 2018-12-13
- Granted: 2021-03-23
- Earliest claimed: 2017-06-12
- Assignees: Palantir Technologies Inc.
- Applicants: Palantir Technologies Inc.
- Inventors: Jeppe Hallgren; Ammaar Reshi; James Thompson
- Web page: https://patentgrep.com/patent/US10956406B2

## CPC

- G06F 16/2386: {Bulk updating operations (data conversion details G06F16/258)}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2433: {Query languages}
- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Using a distributed database system that manages a plurality of different raw datasets and a plurality of derived datasets that have been derived from the raw datasets based on a plurality of derivation relationships that link the raw datasets to the derived datasets, a subset of records that are candidates for propagated deletion of specified data values is determined. One or more particular raw datasets that contain the subset of records is determined. The specified data values from the particular raw datasets is deleted. Based on the plurality of derivation relationships and the particular raw datasets, one or more particular derived datasets that have been derived from the particular raw datasets is identified. A build of one or more particular derived datasets to result in creating and storing one or more particular derived datasets without the specified data values deleted from the particular raw datasets is generated and executed.

## Claims

### Claim 1

A computer-implemented method comprising:
using a distributed database system that is programmed to manage a plurality of different raw datasets and a plurality of derived resilient distributed datasets that have been derived from the plurality of different raw datasets based on a plurality of derivation relationships that link the plurality of different raw datasets to the plurality of derived resilient distributed datasets;
determining one or more particular raw datasets of the plurality of different raw datasets that contain a subset of records that are candidates for propagated deletion of specified data values;
deleting the specified data values from the one or more particular raw datasets;
based on one or more of the plurality of derivation relationships, identifying one or more particular derived resilient distributed datasets, of the plurality of derived resilient distributed datasets, that have been derived from the one or more particular raw datasets;
wherein each particular derived resilient distributed dataset of the one or more particular derived resilient distributed datasets is a read-only partitioned collection of records in the distributed database system;
generating and executing a particular build of the one or more particular derived resilient distributed datasets from the one or more particular raw datasets from which the specified data values are deleted to result in creating and storing one or more new particular derived resilient distributed datasets without the specified data values that were deleted from the one or more particular raw datasets; and
deleting the specified data values from one or more historical builds of the one or more particular derived resilient distributed datasets from the one or more particular raw datasets that were built prior to the particular build;
wherein the method is performed using one or more processors.

### Claim 2 (depends on 1)

The method of claim 1, further comprising deleting one or more historical builds of the same derived resilient distributed datasets for which a build was generated and executed.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
determining the one or more particular raw datasets that contain the subset of records by accessing metadata in the distributed database system to determine one or more raw datasets in which a copy or trace of the subset of records resides;
as part of the deleting the one or more historical builds, also deleting any metadata in the distributed database system that contain data traces from the subset of records that are candidates for propagated deletion of the specified data values.

### Claim 4 (depends on 1)

The method of claim 1, wherein the distributed database system has a property of immutability.

### Claim 5 (depends on 1)

The method of claim 1, wherein the steps of identifying, generating, and executing comprise traversing a directed graph, which is represented in metadata stored in the distributed database system, in which nodes represent raw datasets or derived resilient distributed datasets and in which links represent derivation relationships of the nodes.

### Claim 6 (depends on 1)

The method of claim 1, wherein the steps of identifying, generating, and executing comprise inspecting metadata stored in the plurality of derived resilient distributed datasets that specifies which of the plurality of different raw datasets were sources for the plurality of derived resilient distributed datasets.

### Claim 7 (depends on 1)

The method of claim 1, wherein the steps of the method are executed via programmatic cooperation of an SQL interface, a core resilient distributed dataset processor, one or more worker processes and the distributed database system.

### Claim 8 (depends on 1)

The method of claim 1, wherein at least one of the plurality of derived resilient distributed datasets is managed in a POSTGRES system.

### Claim 9 (depends on 1)

The method of claim 1, further comprising receiving a deletion request that specifies parameters of data to be deleted via a programmatic call, input at a host computing device, from a cron job or from a script that executes according to a schedule.

### Claim 10

A computer system comprising:
one or more processors;
one or more storage media;
one or more sequences of instructions stored in the one or more storage media which, when executed by the one or more processors, cause performance of:
using a distributed database system that is programmed to manage a plurality of different raw datasets and a plurality of derived resilient distributed datasets that have been derived from the plurality of different raw datasets based on a plurality of derivation relationships that link the plurality of different raw datasets to the plurality of derived resilient distributed datasets;
determining one or more particular raw datasets of the plurality of different raw datasets that contain a subset of records that are candidates for propagated deletion of specified data values;
deleting the specified data values from the one or more particular raw datasets;
based on one or more of the plurality of derivation relationships, identifying one or more particular derived resilient distributed datasets, of the plurality of derived resilient distributed datasets, that have been derived from the one or more particular raw datasets;
wherein each particular derived resilient distributed dataset of the one or more particular derived resilient distributed datasets is a read-only partitioned collection of records in the distributed database system;
generating and executing a particular build of the one or more particular derived resilient distributed datasets from the one or more particular raw datasets from which the specified data values are deleted to result in creating and storing one or more new particular derived resilient distributed datasets without the specified data values that were deleted from the one or more particular raw datasets; and
deleting the specified data values from one or more historical builds of the one or more particular derived resilient distributed datasets from the one or more particular raw datasets that were built prior to the particular build.

### Claim 11 (depends on 10)

The system of claim 10, further comprising sequences of instructions which when executed cause deleting one or more historical builds of the same derived resilient distributed datasets for which a build was generated and executed.

### Claim 12 (depends on 11)

The system of claim 11, further comprising sequences of instructions which when executed cause: determining the one or more particular raw datasets that contain the subset of records by accessing metadata in the distributed database system to determine one or more raw datasets in which a copy or trace of the subset of records resides;
as part of the deleting the one or more historical builds, also deleting any metadata in the distributed database system that contain data traces from the subset of records that are candidates for propagated deletion of the specified data values.

### Claim 13 (depends on 10)

The system of claim 10, wherein the distributed database system has a property of immutability.

### Claim 14 (depends on 10)

The system of claim 10, wherein the sequences of instructions which cause identifying, generating, and executing further comprise sequences of instructions which when executed cause traversing a directed graph, which is represented in metadata stored in the distributed database system, in which nodes represent raw datasets or derived resilient distributed datasets and in which links represent derivation relationships of the nodes.

### Claim 15 (depends on 10)

The system of claim 10, wherein the sequences of instructions which cause identifying, generating, and executing comprise sequences of instructions which when executed cause inspecting metadata stored in the plurality of derived resilient distributed datasets that specifies which of the plurality of different raw datasets were sources for the plurality of derived resilient distributed datasets.

### Claim 16 (depends on 10)

The system of claim 10, wherein the sequences of instructions are executed via programmatic cooperation of an SQL interface, a core resilient distributed dataset processor, one or more worker processes and the distributed database system.

### Claim 17 (depends on 10)

The system of claim 10, wherein at least one of the plurality of derived resilient distributed datasets is managed in a POSTGRES system.

### Claim 18 (depends on 10)

The system of claim 10, further comprising sequences of instructions which when executed cause receiving a deletion request that specifies parameters of data to be deleted via a programmatic call, input at a host computing device, from a cron job or from a script that executes according to a schedule.

### Claim 19

One or more non-transitory computer-readable storage media comprising instructions which, when executed, cause:
using a distributed database system that is programmed to manage a plurality of different raw datasets and a plurality of derived resilient distributed datasets that have been derived from the plurality of different raw datasets based on a plurality of derivation relationships that link the plurality of different raw datasets to the plurality of derived resilient distributed datasets;
determining one or more particular raw datasets of the plurality of different raw datasets that contain a subset of records that are candidates for propagated deletion of specified data values;
deleting the specified data values from the one or more particular raw datasets;
based on one or more of the plurality of derivation relationships, identifying one or more particular derived resilient distributed datasets, of the plurality of derived resilient distributed datasets, that have been derived from the one or more particular raw datasets;
wherein each particular derived resilient distributed dataset of the one or more particular derived resilient distributed datasets is a read-only partitioned collection of records in the distributed database system;
generating and executing a particular build of the one or more particular derived resilient distributed datasets from the one or more particular raw datasets from which the specified data values are deleted to result in creating and storing one or more new particular derived resilient distributed datasets without the specified data values that were deleted from the one or more particular raw datasets; and
deleting the specified data values from one or more historical builds of the one or more particular derived resilient distributed datasets from the one or more particular raw datasets that were built prior to the particular build.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage media of claim 19, further comprising instructions which, when executed, cause:
determining the one or more particular raw datasets that contain the subset of records by accessing metadata in the distributed database system to determine one or more raw datasets in which a copy or trace of the subset of records resides;
as part of the deleting the one or more historical builds, also deleting any metadata in the distributed database system that contain data traces from the subset of records that are candidates for propagated deletion of the specified data values.
