<@U088GGSTRR6> regarding custom DataSource, does D...
# daft-dev
t
@Robert Howell regarding custom DataSource, does DataSource's schema needs to be the same as DataSourceTask's schema? If so, what is your advice when the task's schema is different because we can absorb filtering, projection pushdown to limit the columns to read? That is my use case at the moment. Everything about the dataframe like
collect()
works fine until I do
write_parquet
, the error message is
channel closed
(from rust I guess). When there is projection pushdown, it works fine
r
The DataSource schema is the schema which is planned against, and the DataSourceTask schema is the actual schema of the data AFTER applying the projections.
The DataSourceTask schema (1) must match the schema of the MicroPartitions returned by that task and (2) must match what's specified by the pushdown columns.
t
thank you, it is very helpful. I'm able to resolve the error now
r
Nice, keep pinging me if there are any troubles. Good luck.
✅ 1