Skip to content

datafusion adapter#185

Open
bitner wants to merge 1 commit intomainfrom
datafusion-sql
Open

datafusion adapter#185
bitner wants to merge 1 commit intomainfrom
datafusion-sql

Conversation

@bitner
Copy link
Copy Markdown
Contributor

@bitner bitner commented Apr 8, 2026

Adds support for generating geodatafusion compatible SQL.

Adds a test helper to convert the test ndjson file to geoparquet to use for ducdkb / datafusion integration tests.

@bitner bitner requested a review from gadomski April 8, 2026 19:06
Comment thread src/datafusion.rs
Comment on lines +9 to +12
pub trait ToDataFusionSQL {
/// Convert Expression to SQL for DataFusion and geodatafusion.
fn to_datafusion_sql(&self) -> Result<String, Error>;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's only one implementation, do we need the trait? Can we just implement directly on Expr?

Comment thread src/lib.rs
unused_results
)]
#![allow(clippy::result_large_err)]
#![cfg_attr(test, allow(unused_crate_dependencies))]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I generally prefer to do a

#[cfg(test)]
use foo as _;

Copy link
Copy Markdown
Collaborator

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of nits/tweaks on impelmentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants