Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ uuid = "1"
x509-certificate = "0.23.1"

[patch.crates-io]
datafusion = { git = "https://github.com/spiceai/datafusion.git", rev = "e0e423e9e29a711d076892865d51747b06429d1b" } # spiceai-45
datafusion-common = { git = "https://github.com/spiceai/datafusion.git", rev = "e0e423e9e29a711d076892865d51747b06429d1b" } # spiceai-45
datafusion-execution = { git = "https://github.com/spiceai/datafusion.git", rev = "e0e423e9e29a711d076892865d51747b06429d1b" } # spiceai-45
datafusion-expr = { git = "https://github.com/spiceai/datafusion.git", rev = "e0e423e9e29a711d076892865d51747b06429d1b" } # spiceai-45
datafusion = { git = "https://github.com/spiceai/datafusion.git", rev = "bfde649a9622d1a89172a1ba08b7a66945a030d5" } # spiceai-45
datafusion-common = { git = "https://github.com/spiceai/datafusion.git", rev = "bfde649a9622d1a89172a1ba08b7a66945a030d5" } # spiceai-45
datafusion-execution = { git = "https://github.com/spiceai/datafusion.git", rev = "bfde649a9622d1a89172a1ba08b7a66945a030d5" } # spiceai-45
datafusion-expr = { git = "https://github.com/spiceai/datafusion.git", rev = "bfde649a9622d1a89172a1ba08b7a66945a030d5" } # spiceai-45

datafusion-federation = { git = "https://github.com/spiceai/datafusion-federation.git", rev = "1c814422cfbdeb7f7bd2399e3369656710413aa8" } # spiceai-45
datafusion-table-providers = { git = "https://github.com/datafusion-contrib/datafusion-table-providers.git", rev = "1713e9af2729f686aac46aef63e8c84545083e29" } # spiceai
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use arrow_flight::{
use arrow_ipc::{reader::StreamReader, writer::StreamWriter};
use arrow_schema::SchemaRef;
use arrow_tools::record_batch::record_to_param_values;
use bytes::Bytes;
use datafusion::{
common::ParamValues,
sql::sqlparser::{
Expand Down Expand Up @@ -71,9 +72,11 @@ pub(crate) async fn do_action_create_prepared_statement(
.map_err(to_tonic_err)?;

let dataset_schema = Service::serialize_schema(&dataset_schema)?;
let parameter_schema = Service::serialize_schema(
&parameter_schema.ok_or(Status::internal("no parameter schema"))?,
)?;
let parameter_schema = if let Some(schema) = &parameter_schema {
Service::serialize_schema(schema)?
} else {
Bytes::default()
};

let stmt = PreparedStatement {
query: query.to_string(),
Expand Down
Loading