Skip to content

Apache DataFusion SQL Query Engine

Add Debug to TableReference and ResolvedTableReference (#3533)

Andy Grovef30fc4eccc43
diff --git a/datafusion/sql/src/table_reference.rs b/datafusion/sql/src/table_reference.rs
index 44848eb991..27905163dc 100644
--- a/datafusion/sql/src/table_reference.rs
+++ b/datafusion/sql/src/table_reference.rs
@@ -16,7 +16,7 @@
// under the License.
// / Represents a resolved path to a table of the form "catalog.schema.table"
-#[derive(Clone, Copy)]
+#[derive(Debug, Clone, Copy)]
pub struct ResolvedTableReference<'a> {
/// The catalog (aka database) containing the table
pub catalog: &'a str,
@@ -27,7 +27,7 @@ pub struct ResolvedTableReference<'a> {
}
/// Represents a path to a table that may require further resolution
-#[derive(Clone, Copy)]
+#[derive(Debug, Clone, Copy)]
pub enum TableReference<'a> {
/// An unqualified table reference, e.g. "table"
Bare {