fix: replace empty schema with GET_PRIMARY_KEYS_SCHEMA (#7508)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Chunchun Ye 2023-04-11 16:40:52 -05:00 committed by GitHub
parent 980589504d
commit 911d57c2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ async fn plan_get_primary_keys(
_db_schema: Option<String>,
_table: String,
) -> Result<LogicalPlan> {
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)?)
}