Skip to content

Commit

Permalink
Fixup paths (tests and README)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Sep 11, 2024
1 parent 7a2bc05 commit 50a4317
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ make

To run, run the bundled `duckdb` shell:
```
./duckdb/build/release/duckdb
./build/release/duckdb
```

Then, load the Substrait - DuckDB extension like so:
Expand Down
2 changes: 1 addition & 1 deletion test/python/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def add_extension(extension_name, conn: Union[str, DuckDBPyConnection] = '') ->
'allow_unsigned_extensions' : 'true'
}
conn = duckdb.connect(conn or '', config=config)
file_path = f"'{dir}/../../duckdb/build/{build_type}/extension/{extension_name}/{extension_name}.duckdb_extension'"
file_path = f"'{dir}/../../build/{build_type}/extension/{extension_name}/{extension_name}.duckdb_extension'"
conn.execute(f"LOAD {file_path}")
return conn

Expand Down
2 changes: 1 addition & 1 deletion test/python/test_adbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def find_substrait():
# Paths to search for extensions
build = normpath(join(dirname(__file__), "../../duckdb/build/"))
build = normpath(join(dirname(__file__), "../../build/"))
extension = "extension/*/*.duckdb_extension"

extension_search_patterns = [
Expand Down
2 changes: 1 addition & 1 deletion test/r/test_substrait.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ load_extension <- function() {

file_directory <- getwd()
con <- dbConnect(duckdb::duckdb(config=list("allow_unsigned_extensions"="true")))
dbExecute(con, sprintf("LOAD '%s/../../duckdb/build/%s/extension/substrait/substrait.duckdb_extension';", file_directory, build_type))
dbExecute(con, sprintf("LOAD '%s/../../build/%s/extension/substrait/substrait.duckdb_extension';", file_directory, build_type))
return (con)
}

Expand Down

0 comments on commit 50a4317

Please sign in to comment.