public static void checkRowIDPartitionComponent(List<HiveColumnHandle> columns, Optional<byte[]> rowIdPartitionComponent)
    {
        boolean supplyRowIDs = columns.stream().anyMatch(column -> HiveColumnHandle.isRowIdColumnHandle(column));
        if (supplyRowIDs) {
            checkArgument(rowIdPartitionComponent.isPresent(), "rowIDPartitionComponent required when supplying row IDs");
        }
    }
@Test
    public void testCheckRowIDPartitionComponent_rowID()
    {
        HiveColumnHandle handle = HiveColumnHandle.rowIdColumnHandle();
        List<HiveColumnHandle> columns = ImmutableList.of(handle);
        checkRowIDPartitionComponent(columns, Optional.of(new byte[0]));
    }