Skip to content

Commit

Permalink
test: add query result
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Feb 23, 2024
1 parent 1536a02 commit 5d327c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests-integration/tests/region_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ async fn find_region_distribution_by_sql(cluster: &GreptimeDbCluster) -> RegionD

let recordbatches = RecordBatches::try_collect(stream).await.unwrap();

info!("SQL result:\n {}", recordbatches.pretty_print().unwrap());

let mut distribution = RegionDistribution::new();

for batch in recordbatches.take() {
Expand Down Expand Up @@ -911,6 +913,8 @@ async fn trigger_migration_by_sql(

let recordbatches = RecordBatches::try_collect(stream).await.unwrap();

info!("SQL result:\n {}", recordbatches.pretty_print().unwrap());

let Value::String(procedure_id) = recordbatches.take()[0].column(0).get(0) else {
unreachable!();
};
Expand All @@ -932,6 +936,8 @@ async fn query_procedure_by_sql(instance: &Arc<Instance>, pid: &str) -> String {

let recordbatches = RecordBatches::try_collect(stream).await.unwrap();

info!("SQL result:\n {}", recordbatches.pretty_print().unwrap());

let Value::String(state) = recordbatches.take()[0].column(0).get(0) else {
unreachable!();
};
Expand Down

0 comments on commit 5d327c0

Please sign in to comment.