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 <discord9@163.com>
This commit is contained in:
discord9
2026-10-20 15:22:24 +08:00
parent baa5630119
commit 920d4e76a8
@@ -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,