mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 13:44:03 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user