(&self)
| 49 | } |
| 50 | |
| 51 | pub fn path_str(&self) -> Result<String> { |
| 52 | let path = self.path(); |
| 53 | path.to_str().map(String::from).ok_or_else(|| { |
| 54 | DataFusionError::Execution(format!( |
| 55 | "CSV directory path is not valid UTF-8: {}", |
| 56 | path.display() |
| 57 | )) |
| 58 | }) |
| 59 | } |
| 60 | |
| 61 | pub fn schema(&self) -> SchemaRef { |
| 62 | match self { |