public void verifyCompatibleType(TensorType originalType) {
        TensorType sparseType = extractSparseDimensions(originalType);
        TensorType thisType = tensor.getTensorType().get();
        for (var dim : thisType.dimensions()) {
            if (sparseType.dimension(dim.name()).isEmpty()) {
                throw new IllegalArgumentException("Unexpected type '" + thisType + "' in remove update. "
                        + "Expected dimensions to be a subset of '" + sparseType + "'");
            }
        }
    }
An update used to remove cells from a sparse tensor or dense sub-spaces from a mixed tensor.

The specification of which cells to remove contains addresses using a subset or all of the sparse dimensions of the tensor type.
This is represented as a sparse tensor where cell values are set to 1.0.
document/src/main/java/com/yahoo/document/update/TensorRemoveUpdate.java