-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
716ef09
to
74e55a0
Compare
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 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" } |
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 like this should be your repo for now: datafusion-flight-sql-server = { git = "https://github.com/nathanielc/datafusion-federation.git", branch = "feat/put-prepared" }
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.
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( |
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.
nice
@@ -178,7 +180,7 @@ impl TableProvider for CacheTable { | |||
&self, | |||
_state: &dyn Session, | |||
input: Arc<dyn ExecutionPlan>, | |||
overwrite: bool, | |||
insert_op: InsertOp, |
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.
nice
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