From 911d57c2d48539df0776532789a209b3d5d4861e Mon Sep 17 00:00:00 2001 From: Chunchun Ye <14298407+appletreeisyellow@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:40:52 -0500 Subject: [PATCH] fix: replace empty schema with GET_PRIMARY_KEYS_SCHEMA (#7508) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- flightsql/src/planner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flightsql/src/planner.rs b/flightsql/src/planner.rs index 731bad0ac7..81104db6e9 100644 --- a/flightsql/src/planner.rs +++ b/flightsql/src/planner.rs @@ -287,7 +287,7 @@ async fn plan_get_primary_keys( _db_schema: Option, _table: String, ) -> Result { - let batch = RecordBatch::new_empty(Arc::new(Schema::new(vec![]))); + let batch = RecordBatch::new_empty(Arc::clone(&GET_PRIMARY_KEYS_SCHEMA)); Ok(ctx.batch_to_logical_plan(batch)?) }