Skip to content

Commit 72851de

Browse files
authored
chore: expose sql module (#188)
* chore: expose sql module * fix: lint fix
1 parent 5e28dfc commit 72851de

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

datafusion-postgres/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod handlers;
22
pub mod pg_catalog;
3-
mod sql;
3+
pub mod sql;
44

55
use std::fs::File;
66
use std::io::{BufReader, Error as IOError, ErrorKind};

datafusion-postgres/src/sql/parser.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ pub struct PostgresCompatibilityParser {
177177
rewrite_rules: Vec<Arc<dyn SqlStatementRewriteRule>>,
178178
}
179179

180+
impl Default for PostgresCompatibilityParser {
181+
fn default() -> Self {
182+
Self::new()
183+
}
184+
}
185+
180186
impl PostgresCompatibilityParser {
181187
pub fn new() -> Self {
182188
let mut mapping = Vec::with_capacity(BLACKLIST_SQL_MAPPING.len());

datafusion-postgres/src/sql/rules.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ pub struct RemoveUnsupportedTypes {
266266
unsupported_types: HashSet<String>,
267267
}
268268

269+
impl Default for RemoveUnsupportedTypes {
270+
fn default() -> Self {
271+
Self::new()
272+
}
273+
}
274+
269275
impl RemoveUnsupportedTypes {
270276
pub fn new() -> Self {
271277
let mut unsupported_types = HashSet::new();

0 commit comments

Comments
 (0)