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

vortex-data / vortex / 16948846173

13 Aug 2025 08:43PM UTC coverage: 87.802% (+0.1%) from 87.667%
16948846173

Pull #4177

github

web-flow
Merge d3b7e7d69 into 5b99decba
Pull Request #4177: feat: ArrayOperations infallible

1189 of 1275 new or added lines in 147 files covered. (93.25%)

17 existing lines in 12 files now uncovered.

56419 of 64257 relevant lines covered (87.8%)

621291.15 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