Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Oct 9, 2024
1 parent 2afb409 commit 032230a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/batch/src/executor/postgres_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use risingwave_common::row::OwnedRow;
use risingwave_common::types::{DataType, Datum, Decimal, ScalarImpl};
use risingwave_common::util::chunk_coalesce::DataChunkBuilder;
use risingwave_pb::batch_plan::plan_node::NodeBody;
use thiserror_ext::AsReport;
use tokio_postgres;

use crate::error::BatchError;
Expand Down Expand Up @@ -139,7 +140,10 @@ impl PostgresQueryExecutor {

tokio::spawn(async move {
if let Err(e) = conn.await {
tracing::error!("postgres_query_executor: connection error: {:?}", e);
tracing::error!(
"postgres_query_executor: connection error: {:?}",
e.as_report()
);
}
});

Expand Down
6 changes: 5 additions & 1 deletion src/frontend/src/expr/table_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use risingwave_common::types::{DataType, ScalarImpl, StructType};
use risingwave_connector::source::iceberg::{create_parquet_stream_builder, list_s3_directory};
pub use risingwave_pb::expr::table_function::PbType as TableFunctionType;
use risingwave_pb::expr::PbTableFunction;
use thiserror_ext::AsReport;
use tokio::runtime::Runtime;
use tokio_postgres;
use tokio_postgres::types::Type as TokioPgType;
Expand Down Expand Up @@ -303,7 +304,10 @@ impl TableFunction {

tokio::spawn(async move {
if let Err(e) = connection.await {
eprintln!("connection error: {}", e);
tracing::error!(
"postgres_query_executor: connection error: {:?}",
e.as_report()
);
}
});

Expand Down

0 comments on commit 032230a

Please sign in to comment.