polars_lazy/
dot.rs

1use polars_core::prelude::*;
2
3use crate::prelude::*;
4
5impl LazyFrame {
6    /// Get a dot language representation of the LogicalPlan.
7    pub fn to_dot(&self, optimized: bool) -> PolarsResult<String> {
8        let lp = if optimized {
9            self.clone().to_alp_optimized()
10        } else {
11            self.clone().to_alp()
12        }?;
13
14        Ok(lp.display_dot().to_string())
15    }
16}