Skip to content

Commit

Permalink
Purged Athena dialect, just the empty array test now
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Allen committed Jul 6, 2022
1 parent e16a085 commit 2053cd4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 273 deletions.
28 changes: 0 additions & 28 deletions src/dialect/athena.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/dialect/mod.rs
Expand Up @@ -11,7 +11,6 @@
// limitations under the License.

mod ansi;
mod athena;
mod bigquery;
mod clickhouse;
mod generic;
Expand All @@ -29,7 +28,6 @@ use core::iter::Peekable;
use core::str::Chars;

pub use self::ansi::AnsiDialect;
pub use self::athena::AthenaSqlDialect;
pub use self::bigquery::BigQueryDialect;
pub use self::clickhouse::ClickHouseDialect;
pub use self::generic::GenericDialect;
Expand Down
243 changes: 0 additions & 243 deletions tests/sqlparser_athena.rs

This file was deleted.

7 changes: 7 additions & 0 deletions tests/sqlparser_postgres.rs
Expand Up @@ -1228,6 +1228,13 @@ fn parse_array_index_expr() {
},
expr_from_projection(only(&select.projection)),
);

let sql = "SELECT ARRAY[]";
let select = pg_and_generic().verified_only_select(sql);
assert_eq!(
&Expr::Array(sqlparser::ast::Array { elem: vec![], named: true}),
expr_from_projection(only(&select.projection)),
);
}

#[test]
Expand Down

0 comments on commit 2053cd4

Please sign in to comment.