-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require Debug
for DataSource
#14882
Require Debug
for DataSource
#14882
Conversation
@@ -35,7 +35,7 @@ use datafusion_physical_expr_common::sort_expr::LexOrdering; | |||
|
|||
/// Common behaviors in Data Sources for both from Files and Memory. | |||
/// See `DataSourceExec` for physical plan implementation | |||
pub trait DataSource: Send + Sync { | |||
pub trait DataSource: Send + Sync + Debug { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this means that anything that implements DataSource
must also implement Debug
This trait was introduced in
And thus has not yet been released yet and thus is not a breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@@ -35,7 +35,7 @@ use datafusion_physical_expr_common::sort_expr::LexOrdering; | |||
|
|||
/// Common behaviors in Data Sources for both from Files and Memory. | |||
/// See `DataSourceExec` for physical plan implementation | |||
pub trait DataSource: Send + Sync { | |||
pub trait DataSource: Send + Sync + Debug { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably we can comment why Debug
is required? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a note in a5dbaca-- the real reason is to help standard debugging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks @alamb
Which issue does this PR close?
Part of
46.0.0
#14123This is a follow on / fallout of
DataSourceExec
for provided datasources, removeParquetExec
,CsvExec
, etc #14224Rationale for this change
When working on upgrading delta-rs to use the new DataSourceExec I was debugging something and all that is shown is like this
I want to be able to see what DataSource it is so I can debug it properly
What changes are included in this PR?
Debug
forDataSource
Are these changes tested?
By CI
Are there any user-facing changes?
Better debug ability
I have more improvements planned in this area too as I work through the delta upgrade