alamb opened a new pull request #1789: URL: https://github.com/apache/arrow-datafusion/pull/1789
# Which issue does this PR close? Closes https://github.com/apache/arrow-datafusion/issues/1788 # Rationale for this change I would like access to datafusion's logs in the CLI # What changes are included in this PR? Add `env_logger` support so I can run : ```shell RUST_LOG=debug cargo run --bin datafusion-cli ``` # Are there any user-facing changes? You can now get logs if you want them by setting `RUST_LOG` as described in https://docs.rs/env_logger/latest/env_logger/. For example ```shell RUST_LOG='datafusion=debug' cargo run --bin datafusion-cli Finished dev [unoptimized + debuginfo] target(s) in 0.15s Running `target/debug/datafusion-cli` DataFusion CLI v6.0.0 [2022-02-08T21:11:20Z DEBUG datafusion::execution::memory_manager] Creating memory manager with initial size 11744051.2 TB ❯ create table t1 as select * from (values (11, 'a'), (22, 'b'), (33, 'c'), (44, 'd'), (77, 'e')) as sq; [2022-02-08T21:11:23Z DEBUG datafusion::execution::context] Logical plan: Projection: #sq.column1, #sq.column2 Projection: #column1, #column2, alias=sq Values: (Int64(11), Utf8("a")), (Int64(22), Utf8("b")), (Int64(33), Utf8("c")), (Int64(44), Utf8("d")), (Int64(77), Utf8("e")) [2022-02-08T21:11:23Z DEBUG datafusion::execution::context] Optimized logical plan: Projection: #sq.column1, #sq.column2 Projection: #column1, #column2, alias=sq Values: (Int64(11), Utf8("a")), (Int64(22), Utf8("b")), (Int64(33), Utf8("c")), (Int64(44), Utf8("d")), (Int64(77), Utf8("e")) [2022-02-08T21:11:23Z DEBUG datafusion::execution::context] Logical plan: Projection: #sq.column1, #sq.column2 Projection: #column1, #column2, alias=sq Values: (Int64(11), Utf8("a")), (Int64(22), Utf8("b")), (Int64(33), Utf8("c")), (Int64(44), Utf8("d")), (Int64(77), Utf8("e")) [2022-02-08T21:11:23Z DEBUG datafusion::execution::context] Optimized logical plan: Projection: #sq.column1, #sq.column2 Projection: #column1, #column2, alias=sq Values: (Int64(11), Utf8("a")), (Int64(22), Utf8("b")), (Int64(33), Utf8("c")), (Int64(44), Utf8("d")), (Int64(77), Utf8("e")) [2022-02-08T21:11:23Z DEBUG datafusion::physical_plan::planner] Physical plan: ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
