pola-rs/polars · error

integer

Error message

integer

What it means

Error "integer" thrown in pola-rs/polars.

Source

Thrown at crates/polars-io/src/file_cache/cache.rs:173

            Ok(entry)
        }
    }

    /// This function can accept relative local paths.
    pub fn get_entry(&self, path: PlRefPath) -> Option<Arc<FileCacheEntry>> {
        if path.has_scheme() {
            self.entries.read().unwrap().get(&path).cloned()
        } else {
            let p =
                PlRefPath::try_from_pathbuf(std::fs::canonicalize(path.as_str()).unwrap()).unwrap();
            self.entries.read().unwrap().get(&p).cloned()
        }
    }
}

pub fn get_env_file_cache_ttl() -> u64 {
    std::env::var("POLARS_FILE_CACHE_TTL")
        .map(|x| x.parse::<u64>().expect("integer"))
        .unwrap_or(60 * 60)
}

View on GitHub (pinned to df599052da)

When it happens

Trigger: Thrown at crates/polars-io/src/file_cache/cache.rs:173 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16). Data as JSON: /api/errors/2e6fcf4bcecd855c. Report an issue: GitHub.