• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vortex-data / vortex / 17041372319

18 Aug 2025 01:01PM UTC coverage: 88.047% (+0.1%) from 87.913%
17041372319

Pull #4177

github

web-flow
Merge 74cbbea45 into abfc8534c
Pull Request #4177: feat: ArrayOperations infallible

1187 of 1273 new or added lines in 146 files covered. (93.24%)

18 existing lines in 12 files now uncovered.

56492 of 64161 relevant lines covered (88.05%)

622803.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/vortex-array/src/arrays/constant/encode.rs
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3

4
use vortex_error::VortexResult;
5

6
use crate::Canonical;
7
use crate::arrays::{ConstantArray, ConstantEncoding, ConstantVTable};
8
use crate::vtable::EncodeVTable;
9

10
impl EncodeVTable<ConstantVTable> for ConstantVTable {
11
    fn encode(
×
12
        _encoding: &ConstantEncoding,
×
13
        canonical: &Canonical,
×
14
        _like: Option<&ConstantArray>,
×
15
    ) -> VortexResult<Option<ConstantArray>> {
×
16
        let canonical = canonical.as_ref();
×
17
        if canonical.is_constant() {
×
NEW
18
            let scalar = canonical.scalar_at(0);
×
19
            Ok(Some(ConstantArray::new(scalar, canonical.len())))
×
20
        } else {
21
            Ok(None)
×
22
        }
23
    }
×
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc