diff --git a/e2e_test/source/tvf/postgres_query.slt b/e2e_test/source/tvf/postgres_query.slt index c188bddd60620..3d366b01420dc 100644 --- a/e2e_test/source/tvf/postgres_query.slt +++ b/e2e_test/source/tvf/postgres_query.slt @@ -1,8 +1,9 @@ system ok -PGHOST=db PGPORT=5432 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=postgres_query psql -c "CREATE TABLE test (id bigint primary key, x int);" +PGHOST=db PGPORT=5432 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=cdc_test psql -c "CREATE TABLE test (id bigint primary key, x int);" system ok -PGHOST=db PGPORT=5432 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=postgres_query psql -c "INSERT INTO test select id, id::int from generate_series(1, 100) as t(id);" +PGHOST=db PGPORT=5432 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=cdc_test psql -c "INSERT INTO test select id, id::int from generate_series(1, 100) as t(id);" query II -select * from postgres_scan('db', '5432', 'postgres', 'postgres', 'postgres_query', 'select * from test where id > 90;'); \ No newline at end of file +select * from postgres_query('db', '5432', 'postgres', 'postgres', 'cdc_test', 'select * from test where id > 90;'); +---- \ No newline at end of file diff --git a/src/frontend/src/expr/table_function.rs b/src/frontend/src/expr/table_function.rs index ac7f96dd3ce66..c3762479750a4 100644 --- a/src/frontend/src/expr/table_function.rs +++ b/src/frontend/src/expr/table_function.rs @@ -286,7 +286,8 @@ impl TableFunction { { return Err(crate::error::ErrorCode::BindError( "table_scan can't be used in the madsim mode".to_string(), - )); + ) + .into()); } #[cfg(not(madsim))]