arrs-cli 0.1.3

Command-line tool for inspecting Lance and other Arrow-based datasets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::Path;

use crate::Result;
use crate::cli::LanceArgs;
use crate::dataset;

pub async fn run(input: &Path, lance: &LanceArgs) -> Result<()> {
    let ds = dataset::open(input, Some(lance)).await?;
    let n = ds.count_rows().await?;
    println!("{n}");
    Ok(())
}