(v: WithOptionValue<Aug>)
| 43 | |
| 44 | impl TryFromValue<WithOptionValue<Aug>> for IcebergCatalogType { |
| 45 | fn try_from_value(v: WithOptionValue<Aug>) -> Result<Self, PlanError> { |
| 46 | match String::try_from_value(v)? { |
| 47 | s if s.eq_ignore_ascii_case("rest") => Ok(IcebergCatalogType::Rest), |
| 48 | s if s.eq_ignore_ascii_case("s3tablesrest") => Ok(IcebergCatalogType::S3TablesRest), |
| 49 | _ => sql_bail!("invalid iceberg catalog type"), |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | fn try_into_value(self, _catalog: &dyn SessionCatalog) -> Option<WithOptionValue<Aug>> { |
| 54 | Some(WithOptionValue::Value(Value::String(match self { |
nothing calls this directly
no test coverage detected