feat: v04 rm unused exprs (#2285)

* feat: rm compact and flush exprs

* refactor: continue to rm compact and flush
This commit is contained in:
JeremyHi
2023-08-30 19:19:06 +08:00
committed by Ruihang Xia
parent db89235474
commit 58d07e0e62
22 changed files with 373 additions and 853 deletions
+4 -4
View File
@@ -186,9 +186,9 @@ fn parse_location(location: Option<Location>) -> Result<Option<AddColumnLocation
}) => Ok(Some(AddColumnLocation::First)),
Some(Location {
location_type: LOCATION_TYPE_AFTER,
after_cloumn_name,
after_column_name,
}) => Ok(Some(AddColumnLocation::After {
column_name: after_cloumn_name,
column_name: after_column_name,
})),
Some(Location { location_type, .. }) => UnknownLocationTypeSnafu { location_type }.fail(),
None => Ok(None),
@@ -262,7 +262,7 @@ mod tests {
is_key: false,
location: Some(Location {
location_type: LocationType::First.into(),
after_cloumn_name: "".to_string(),
after_column_name: "".to_string(),
}),
},
AddColumn {
@@ -275,7 +275,7 @@ mod tests {
is_key: false,
location: Some(Location {
location_type: LocationType::After.into(),
after_cloumn_name: "ts".to_string(),
after_column_name: "ts".to_string(),
}),
},
],