Skip to main content

arrow_data/equal/
null.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
3// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
4
5use crate::data::ArrayData;
6
7#[inline]
8pub(super) fn null_equal(
9    _lhs: &ArrayData,
10    _rhs: &ArrayData,
11    _lhs_start: usize,
12    _rhs_start: usize,
13    _len: usize,
14) -> bool {
15    // a null buffer's range is always true, as every element is by definition equal (to null).
16    // We only need to compare data_types
17    true
18}