You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ga...@apache.org on 2026/08/06 10:36:02 UTC
(datafusion) 04/07: Avoid registering a duplicate table
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 ffd58c4b50ce6e4ee83b532687a7085dc526cc26
Author: Gabriel <ga...@datadoghq.com>
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: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org