@@ -33,7 +33,6 @@ use std::time::{Duration, Instant};
3333use fail:: fail_point;
3434use itertools:: Itertools ;
3535use mz_adapter_types:: compaction:: CompactionWindow ;
36- use mz_catalog:: builtin;
3736use mz_catalog:: memory:: objects:: {
3837 CatalogItem , Cluster , ClusterReplica , Connection , ContinualTask , DataSourceDesc , Index ,
3938 MaterializedView , Secret , Sink , Source , StateDiff , Table , TableDataSource , View ,
@@ -1021,19 +1020,8 @@ impl Coordinator {
10211020 details,
10221021 data_config,
10231022 } => {
1024- // TODO: It's a little weird that a table will be present in this
1025- // source status collection, we might want to split out into a separate
1026- // status collection.
1027- let status_collection_id = self
1028- . catalog ( )
1029- . resolve_builtin_storage_collection ( & builtin:: MZ_SOURCE_STATUS_HISTORY ) ;
1030-
10311023 let global_ingestion_id =
10321024 self . catalog ( ) . get_entry ( ingestion_id) . latest_global_id ( ) ;
1033- let global_status_collection_id = self
1034- . catalog ( )
1035- . get_entry ( & status_collection_id)
1036- . latest_global_id ( ) ;
10371025
10381026 let collection_desc = CollectionDescription :: < Timestamp > {
10391027 desc : table. desc . latest ( ) ,
@@ -1045,7 +1033,6 @@ impl Coordinator {
10451033 . into_inline_connection ( self . catalog . state ( ) ) ,
10461034 } ,
10471035 since : None ,
1048- status_collection_id : Some ( global_status_collection_id) ,
10491036 timeline : Some ( timeline. clone ( ) ) ,
10501037 primary : None ,
10511038 } ;
@@ -1091,7 +1078,6 @@ impl Coordinator {
10911078 desc,
10921079 data_source : DataSource :: Webhook ,
10931080 since : None ,
1094- status_collection_id : None , // Webhook tables don't use status collections
10951081 timeline : Some ( timeline. clone ( ) ) ,
10961082 primary : None ,
10971083 } ;
@@ -1233,16 +1219,7 @@ impl Coordinator {
12331219 source : Source ,
12341220 compaction_windows : BTreeMap < CompactionWindow , BTreeSet < CatalogItemId > > ,
12351221 ) -> Result < ( ) , AdapterError > {
1236- let source_status_item_id = self
1237- . catalog ( )
1238- . resolve_builtin_storage_collection ( & builtin:: MZ_SOURCE_STATUS_HISTORY ) ;
1239- let source_status_collection_id = Some (
1240- self . catalog ( )
1241- . get_entry ( & source_status_item_id)
1242- . latest_global_id ( ) ,
1243- ) ;
1244-
1245- let ( data_source, status_collection_id) = match source. data_source {
1222+ let data_source = match source. data_source {
12461223 DataSourceDesc :: Ingestion { desc, cluster_id } => {
12471224 let desc = desc. into_inline_connection ( self . catalog ( ) . state ( ) ) ;
12481225 let item_global_id = self . catalog ( ) . get_entry ( & item_id) . latest_global_id ( ) ;
@@ -1253,10 +1230,7 @@ impl Coordinator {
12531230 item_global_id,
12541231 ) ;
12551232
1256- (
1257- DataSource :: Ingestion ( ingestion) ,
1258- source_status_collection_id,
1259- )
1233+ DataSource :: Ingestion ( ingestion)
12601234 }
12611235 DataSourceDesc :: OldSyntaxIngestion {
12621236 desc,
@@ -1291,10 +1265,7 @@ impl Coordinator {
12911265 . source_exports
12921266 . insert ( source. global_id , legacy_export) ;
12931267
1294- (
1295- DataSource :: Ingestion ( ingestion) ,
1296- source_status_collection_id,
1297- )
1268+ DataSource :: Ingestion ( ingestion)
12981269 }
12991270 DataSourceDesc :: IngestionExport {
13001271 ingestion_id,
@@ -1305,17 +1276,15 @@ impl Coordinator {
13051276 // TODO(parkmycar): We should probably check the type here, but I'm not sure if
13061277 // this will always be a Source or a Table.
13071278 let ingestion_id = self . catalog ( ) . get_entry ( & ingestion_id) . latest_global_id ( ) ;
1308- (
1309- DataSource :: IngestionExport {
1310- ingestion_id,
1311- details,
1312- data_config : data_config. into_inline_connection ( self . catalog ( ) . state ( ) ) ,
1313- } ,
1314- source_status_collection_id,
1315- )
1279+
1280+ DataSource :: IngestionExport {
1281+ ingestion_id,
1282+ details,
1283+ data_config : data_config. into_inline_connection ( self . catalog ( ) . state ( ) ) ,
1284+ }
13161285 }
1317- DataSourceDesc :: Progress => ( DataSource :: Progress , None ) ,
1318- DataSourceDesc :: Webhook { .. } => ( DataSource :: Webhook , None ) ,
1286+ DataSourceDesc :: Progress => DataSource :: Progress ,
1287+ DataSourceDesc :: Webhook { .. } => DataSource :: Webhook ,
13191288 DataSourceDesc :: Introspection ( _) => {
13201289 unreachable ! ( "cannot create sources with introspection data sources" )
13211290 }
@@ -1328,7 +1297,6 @@ impl Coordinator {
13281297 data_source,
13291298 timeline : Some ( source. timeline ) ,
13301299 since : None ,
1331- status_collection_id,
13321300 primary : None ,
13331301 } ,
13341302 ) ;
0 commit comments