Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datafusion-postgres/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod handlers;
pub mod pg_catalog;
mod sql;
pub mod sql;

use std::fs::File;
use std::io::{BufReader, Error as IOError, ErrorKind};
Expand Down
6 changes: 6 additions & 0 deletions datafusion-postgres/src/sql/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ pub struct PostgresCompatibilityParser {
rewrite_rules: Vec<Arc<dyn SqlStatementRewriteRule>>,
}

impl Default for PostgresCompatibilityParser {
fn default() -> Self {
Self::new()
}
}

impl PostgresCompatibilityParser {
pub fn new() -> Self {
let mut mapping = Vec::with_capacity(BLACKLIST_SQL_MAPPING.len());
Expand Down
6 changes: 6 additions & 0 deletions datafusion-postgres/src/sql/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ pub struct RemoveUnsupportedTypes {
unsupported_types: HashSet<String>,
}

impl Default for RemoveUnsupportedTypes {
fn default() -> Self {
Self::new()
}
}

impl RemoveUnsupportedTypes {
pub fn new() -> Self {
let mut unsupported_types = HashSet::new();
Expand Down
Loading