From 920d4e76a85dded196e8554c46c8b30973107a3b Mon Sep 17 00:00:00 2001 From: discord9 Date: Tue, 20 Oct 2026 15:22:24 +0800 Subject: [PATCH] feat(flow): expose query_with_terminal_metrics to other execution strategies An enterprise batching execution drives its own queries through the same frontend path and needs the terminal metrics to read per-region watermarks. Make the method public instead of crate-only so it does not have to duplicate the transport and metric plumbing. FrontendClient and OutputWithMetrics::region_watermark_map are already public, so this is the only visibility change required. Signed-off-by: discord9 --- src/flow/src/batching_mode/frontend_client.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/flow/src/batching_mode/frontend_client.rs b/src/flow/src/batching_mode/frontend_client.rs index 8c74c6897f0..669d391a3c3 100644 --- a/src/flow/src/batching_mode/frontend_client.rs +++ b/src/flow/src/batching_mode/frontend_client.rs @@ -548,7 +548,11 @@ impl FrontendClient { /// Execute a flow query and return terminal metrics. `snapshot_seqs` are /// optional read upper bounds used only by snapshot-fenced repair chunks. - pub(crate) async fn query_with_terminal_metrics( + /// + /// Public so an enterprise execution strategy can drive its own queries + /// through the same frontend path and read the same terminal metrics, + /// instead of duplicating the transport and metric plumbing. + pub async fn query_with_terminal_metrics( &self, catalog: &str, schema: &str,