Apache DataFusion SQL Query Engine
Improve unsupported data type error message (#2745)
Andy Grove4245ccca1602
diff --git a/datafusion/core/src/physical_plan/hash_join.rs b/datafusion/core/src/physical_plan/hash_join.rsindex c5d8009186..4777e1c445 100644--- a/datafusion/core/src/physical_plan/hash_join.rs+++ b/datafusion/core/src/physical_plan/hash_join.rs@@ -1047,11 +1047,12 @@ fn equal_rows(DataType::LargeUtf8 => {equal_rows_elem!(LargeStringArray, l, r, left, right, null_equals_null)}- _ => {+ other => {// This is internal because we should have caught this before.- err = Some(Err(DataFusionError::Internal(- "Unsupported data type in hasher".to_string(),- )));+ err = Some(Err(DataFusionError::Internal(format!(+ "Unsupported data type in hasher: {}",+ other+ ))));false}});