Skip to content

Commit fd49f56

Browse files
committed
ViewRepresentation::SqlViewRepresentation -> ::Sql
1 parent f3197c0 commit fd49f56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/iceberg/src/spec/view_version.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl IntoIterator for ViewRepresentations {
170170
pub enum ViewRepresentation {
171171
#[serde(rename = "sql")]
172172
/// The SQL representation stores the view definition as a SQL SELECT,
173-
SqlViewRepresentation(SqlViewRepresentation),
173+
Sql(SqlViewRepresentation),
174174
}
175175

176176
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
@@ -242,7 +242,7 @@ pub(super) mod _serde {
242242

243243
impl From<SqlViewRepresentation> for ViewRepresentation {
244244
fn from(sql: SqlViewRepresentation) -> Self {
245-
ViewRepresentation::SqlViewRepresentation(sql)
245+
ViewRepresentation::Sql(sql)
246246
}
247247
}
248248

@@ -297,7 +297,7 @@ mod tests {
297297
});
298298
assert_eq!(
299299
result.representations().to_owned(),
300-
ViewRepresentations(vec![super::ViewRepresentation::SqlViewRepresentation(
300+
ViewRepresentations(vec![super::ViewRepresentation::Sql(
301301
super::SqlViewRepresentation {
302302
sql: "SELECT\n COUNT(1), CAST(event_ts AS DATE)\nFROM events\nGROUP BY 2"
303303
.to_string(),

0 commit comments

Comments
 (0)