You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by dh...@apache.org on 2021/07/16 19:10:04 UTC
[arrow-datafusion] branch master updated: Derive PartialEq for
datasource enums (#734)
This is an automated email from the ASF dual-hosted git repository.
dheres pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new d5427d8 Derive PartialEq for datasource enums (#734)
d5427d8 is described below
commit d5427d8dd1fd8bd6fb2541c1c9386802da7783de
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Fri Jul 16 15:09:57 2021 -0400
Derive PartialEq for datasource enums (#734)
---
datafusion/src/datasource/datasource.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/datafusion/src/datasource/datasource.rs b/datafusion/src/datasource/datasource.rs
index b83aa4b..e173d6e 100644
--- a/datafusion/src/datasource/datasource.rs
+++ b/datafusion/src/datasource/datasource.rs
@@ -27,7 +27,7 @@ use crate::{arrow::datatypes::SchemaRef, scalar::ScalarValue};
/// This table statistics are estimates.
/// It can not be used directly in the precise compute
-#[derive(Debug, Clone, Default)]
+#[derive(Debug, Clone, Default, PartialEq)]
pub struct Statistics {
/// The number of table rows
pub num_rows: Option<usize>,
@@ -51,7 +51,7 @@ pub struct ColumnStatistics {
/// Indicates whether and how a filter expression can be handled by a
/// TableProvider for table scans.
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq)]
pub enum TableProviderFilterPushDown {
/// The expression cannot be used by the provider.
Unsupported,
@@ -67,7 +67,7 @@ pub enum TableProviderFilterPushDown {
}
/// Indicates the type of this table for metadata/catalog purposes.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub enum TableType {
/// An ordinary physical table.
Base,