@@ -18,15 +18,17 @@ use enum_kinds::EnumKind;
1818use futures:: Stream ;
1919use mz_adapter_types:: connection:: { ConnectionId , ConnectionIdType } ;
2020use mz_auth:: password:: Password ;
21+ use mz_cluster_client:: ReplicaId ;
2122use mz_compute_types:: ComputeInstanceId ;
23+ use mz_expr:: RowSetFinishing ;
2224use mz_ore:: collections:: CollectionExt ;
2325use mz_ore:: soft_assert_no_log;
2426use mz_ore:: tracing:: OpenTelemetryContext ;
2527use mz_persist_client:: PersistClient ;
2628use mz_pgcopy:: CopyFormatParams ;
2729use mz_repr:: global_id:: TransientIdGen ;
2830use mz_repr:: role_id:: RoleId ;
29- use mz_repr:: { CatalogItemId , ColumnIndex , GlobalId , RowIterator } ;
31+ use mz_repr:: { CatalogItemId , ColumnIndex , GlobalId , RowIterator , SqlRelationType } ;
3032use mz_sql:: ast:: { FetchDirection , Raw , Statement } ;
3133use mz_sql:: catalog:: ObjectType ;
3234use mz_sql:: optimizer_metrics:: OptimizerMetrics ;
@@ -43,7 +45,8 @@ use crate::catalog::Catalog;
4345use crate :: coord:: ExecuteContextExtra ;
4446use crate :: coord:: appends:: BuiltinTableAppendNotify ;
4547use crate :: coord:: consistency:: CoordinatorInconsistencies ;
46- use crate :: coord:: peek:: PeekResponseUnary ;
48+ use crate :: coord:: peek:: { PeekDataflowPlan , PeekResponseUnary } ;
49+ use crate :: coord:: timestamp_selection:: TimestampDetermination ;
4750use crate :: error:: AdapterError ;
4851use crate :: session:: { EndTransactionAction , RowBatchStream , Session } ;
4952use crate :: statement_logging:: { StatementEndedExecutionReason , StatementExecutionStrategy } ;
@@ -182,6 +185,20 @@ pub enum Command {
182185 real_time_recency_timeout : Duration ,
183186 tx : oneshot:: Sender < Result < Option < mz_repr:: Timestamp > , AdapterError > > ,
184187 } ,
188+
189+ ExecuteSlowPathPeek {
190+ dataflow_plan : Box < PeekDataflowPlan < mz_repr:: Timestamp > > ,
191+ determination : TimestampDetermination < mz_repr:: Timestamp > ,
192+ finishing : RowSetFinishing ,
193+ compute_instance : ComputeInstanceId ,
194+ target_replica : Option < ReplicaId > ,
195+ intermediate_result_type : SqlRelationType ,
196+ source_ids : BTreeSet < GlobalId > ,
197+ conn_id : ConnectionId ,
198+ max_result_size : u64 ,
199+ max_query_result_size : Option < u64 > ,
200+ tx : oneshot:: Sender < Result < ExecuteResponse , AdapterError > > ,
201+ } ,
185202}
186203
187204impl Command {
@@ -204,7 +221,8 @@ impl Command {
204221 | Command :: Dump { .. }
205222 | Command :: GetComputeInstanceClient { .. }
206223 | Command :: GetOracle { .. }
207- | Command :: DetermineRealTimeRecentTimestamp { .. } => None ,
224+ | Command :: DetermineRealTimeRecentTimestamp { .. }
225+ | Command :: ExecuteSlowPathPeek { .. } => None ,
208226 }
209227 }
210228
@@ -227,7 +245,8 @@ impl Command {
227245 | Command :: Dump { .. }
228246 | Command :: GetComputeInstanceClient { .. }
229247 | Command :: GetOracle { .. }
230- | Command :: DetermineRealTimeRecentTimestamp { .. } => None ,
248+ | Command :: DetermineRealTimeRecentTimestamp { .. }
249+ | Command :: ExecuteSlowPathPeek { .. } => None ,
231250 }
232251 }
233252}
0 commit comments