Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Sep 12, 2024
1 parent 91956a4 commit 08d523a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ release:

test: test_release
test_release: release
./build/release/$(TEST_PATH) "$(PROJ_DIR)test/*"
./build/release/$(TEST_PATH) --test-dir "$(PROJ_DIR)" "test/*"
test_debug: debug
./build/debug/$(TEST_PATH) "$(PROJ_DIR)test/*"
./build/debug/$(TEST_PATH) --test-dir "$(PROJ_DIR)" "test/*"

format:
cp duckdb/.clang-format .
Expand Down
2 changes: 1 addition & 1 deletion duckdb
Submodule duckdb updated 198 files
Empty file added test/copydb.sql
Empty file.
15 changes: 14 additions & 1 deletion test/sql/storage/attach_copy_from_database.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ CREATE TABLE ${table_name} AS FROM public.${table_name}

endloop

statement ok
USE memory

statement ok
DETACH s1

statement ok
ATTACH 'dbname=postgresscanner' AS s1 (TYPE POSTGRES, SCHEMA 'copy_schema')

statement ok
USE s1.copy_schema

statement ok
create table big_tbl as from range(100000) t(id)

Expand All @@ -46,7 +58,8 @@ COPY FROM DATABASE s1 TO new_db
foreach table_name pg_numtypes pg_bytetypes pg_datetypes big_tbl my_view

query I
FROM new_db.${table_name} EXCEPT FROM ${table_name}
SELECT COUNT(*) FROM (FROM new_db.copy_schema.${table_name} EXCEPT FROM ${table_name})
----
0

endloop

0 comments on commit 08d523a

Please sign in to comment.