Skip to content

Commit

Permalink
remove geo columns in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed May 16, 2023
1 parent 34d16d2 commit 5c9e2af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pg/table_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ pub async fn table_to_query(

let properties = if let Some(props) = &info.properties {
props
.keys()
.map(|column| escape_with_alias(&info.prop_mapping, column))
.iter()
.filter(|(_, value)| value.as_str() != "geometry")
.map(|(column, _)| escape_with_alias(&info.prop_mapping, column))
.collect::<String>()
} else {
String::new()
Expand Down

0 comments on commit 5c9e2af

Please sign in to comment.