Skip to content
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

feat: add support for prepared statements #600

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

nathanielc
Copy link
Collaborator

@nathanielc nathanielc commented Nov 19, 2024

This change updates to datafusion 43 so that we can update to datafusion-contrib/datafusion-federation#81 which contains the implementation of prepared statements.

Fixes #599

@nathanielc nathanielc requested a review from a team as a code owner November 19, 2024 19:26
@nathanielc nathanielc requested review from stbrody and removed request for a team November 19, 2024 19:26
@nathanielc nathanielc force-pushed the feat/flight-sql-prepared-statements branch from 716ef09 to 74e55a0 Compare November 19, 2024 19:27
Copy link
Contributor

@dav1do dav1do left a comment

Choose a reason for hiding this comment

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

Looks like you need to use a remote patch but looks like nice clean up

Cargo.toml Outdated

[patch."https://github.com/datafusion-contrib/datafusion-federation.git"]
# Can remove once https://github.com/datafusion-contrib/datafusion-federation/pull/81 merges
datafusion-flight-sql-server = { path = "../datafusion-federation/datafusion-flight-sql-server" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this should be your repo for now: datafusion-flight-sql-server = { git = "https://github.com/nathanielc/datafusion-federation.git", branch = "feat/put-prepared" }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I should point at my branch... However reviews on that repo are pretty fast so I am hoping that it gets reviewed before this is ready to merge so that I can just point to main instead of my branch. If not I'll update here.

@@ -22,13 +22,13 @@ pub async fn run(
/// Constructs a new server and can be started.
pub fn new_server(ctx: SessionContext) -> anyhow::Result<Router> {
let svc = FlightServiceServer::new(
FlightSqlService::new(ctx.state()).with_sql_options(Some(
FlightSqlService::new(ctx.state()).with_sql_options(
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@@ -178,7 +180,7 @@ impl TableProvider for CacheTable {
&self,
_state: &dyn Session,
input: Arc<dyn ExecutionPlan>,
overwrite: bool,
insert_op: InsertOp,
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@nathanielc nathanielc enabled auto-merge December 5, 2024 18:17
@nathanielc nathanielc changed the title refactor: upgrade to datafusion 43 feat: add support for prepared statements Dec 5, 2024
@nathanielc nathanielc added this pull request to the merge queue Dec 5, 2024
Merged via the queue into main with commit 9e118c6 Dec 5, 2024
7 checks passed
@nathanielc nathanielc deleted the feat/flight-sql-prepared-statements branch December 5, 2024 19:28
@smrz2001 smrz2001 mentioned this pull request Dec 9, 2024
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.

Implement Prepared statement support in FlighSQL server
2 participants