Skip to content

Apache DataFusion SQL Query Engine

add Eq and PartialEq to ListingTableUrl (#6725)

Faiaz Sanaulla39666eb84774
diff --git a/datafusion/core/src/datasource/listing/url.rs b/datafusion/core/src/datasource/listing/url.rs
index dc96f959e4..a4940f57f8 100644
--- a/datafusion/core/src/datasource/listing/url.rs
+++ b/datafusion/core/src/datasource/listing/url.rs
@@ -28,7 +28,7 @@ use url::Url;
/// A parsed URL identifying files for a listing table, see [`ListingTableUrl::parse`]
/// for more information on the supported expressions
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub struct ListingTableUrl {
/// A URL that identifies a file or directory to list files from
url: Url,