-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from samansmink/logging-wip
Add Logging
- Loading branch information
Showing
9 changed files
with
161 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule duckdb
updated
1887 files
Submodule extension-ci-tools
updated
7 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# name: test/sql/delta_kernel_rs/logging.test | ||
# description: test that delta kernel log entries are properly propagated to the DuckDB logger | ||
# group: [delta_kernel_rs] | ||
|
||
require parquet | ||
|
||
require delta | ||
|
||
require-env DELTA_KERNEL_TESTS_PATH | ||
|
||
statement ok | ||
set enable_logging=true; | ||
|
||
statement ok | ||
SELECT * FROM delta_scan('${DELTA_KERNEL_TESTS_PATH}/basic_partitioned') | ||
|
||
# No kernel logging available yet: we need to set delta_kernel_logging=true | ||
query I | ||
SELECT count(*) FROM duckdb_logs WHERE starts_with(type, 'delta.Kernel') | ||
---- | ||
0 | ||
|
||
statement ok | ||
set delta_kernel_logging=true; | ||
|
||
statement ok | ||
set logging_level = 'TRACE'; | ||
|
||
statement ok | ||
SELECT * FROM delta_scan('${DELTA_KERNEL_TESTS_PATH}/basic_partitioned') | ||
|
||
# Now we have log! | ||
query I | ||
SELECT count(*) > 50 FROM duckdb_logs WHERE starts_with(type, 'delta.Kernel') | ||
---- | ||
true | ||
|
||
statement ok | ||
set delta_kernel_logging=true; | ||
|
||
statement error | ||
set delta_kernel_logging=false; | ||
---- | ||
Invalid Input Error: Can not disable 'delta_kernel_logging' after enabling it |