Validates suite-defined option declarations.
(&self)
| 238 | |
| 239 | /// Validates suite-defined option declarations. |
| 240 | fn validate_options(&self) -> Result<()> { |
| 241 | let mut option_names = HashSet::new(); |
| 242 | for option in &self.options { |
| 243 | if !option_names.insert(option.name.as_str()) { |
| 244 | return Err(DataFusionError::Configuration(format!( |
| 245 | "duplicate option name '{}'", |
| 246 | option.name |
| 247 | ))); |
| 248 | } |
| 249 | |
| 250 | option.validate()?; |
| 251 | } |
| 252 | |
| 253 | Ok(()) |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | impl SuiteOption { |