Skip to content

Commit

Permalink
chore: Add nested test
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Oct 27, 2024
1 parent 07c46b3 commit 797cd8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tests/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@ async fn test_view_foreign_table(mut conn: PgConnection, tempdir: TempDir) -> Re
let res: (bool,) = "SELECT boolean_col FROM primitive_view".fetch_one(&mut conn);
assert!(res.0);

// nested view, fully pushdown to the DuckDB
"CREATE VIEW nested_primitive_view AS SELECT * FROM primitive_view".execute(&mut conn);
let res: (bool,) = "SELECT boolean_col FROM nested_primitive_view".fetch_one(&mut conn);
assert!(res.0);

// cannot fully pushdown to the DuckDB
"CREATE TABLE t1 (a int);".execute(&mut conn);
"INSERT INTO t1 VALUES (1);".execute(&mut conn);
Expand Down

0 comments on commit 797cd8b

Please sign in to comment.