This is an automated email from the ASF dual-hosted git repository. gabotechs pushed a commit to branch gabotechs/add-q-error-stats-benchmarks in repository https://gitbox.apache.org/repos/asf/datafusion.git
commit 13ccf04b382c09a45f21c618485cf4739d04e8f4 Author: Gabriel <[email protected]> AuthorDate: Tue Aug 4 16:36:33 2026 +0200 Avoid registering a duplicate table --- benchmarks/src/statistics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmarks/src/statistics.rs b/benchmarks/src/statistics.rs index e785fffe5e..2373dd301c 100644 --- a/benchmarks/src/statistics.rs +++ b/benchmarks/src/statistics.rs @@ -30,6 +30,7 @@ use datafusion::physical_plan::operator_statistics::StatisticsRegistry; use datafusion::physical_plan::{ExecutionPlan, collect}; use datafusion::prelude::{ParquetReadOptions, SessionConfig, SessionContext}; use datafusion::sql::parser::DFParser; +use datafusion_common::config_err; use datafusion_common::stats::Precision; use regex::Regex; use serde::{Deserialize, Serialize}; @@ -625,6 +626,9 @@ async fn register_parquet_files(ctx: &SessionContext, path: &Path) -> Result<()> .to_string(); (table.clone(), path.join(table)) }; + if tables.contains_key(&table) { + return config_err!("Tried to register duplicate table {table}"); + } tables.insert(table, table_path); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
