Skip to content

Commit 78bb64f

Browse files
committed
resolve merge conflicts
1 parent c8c944b commit 78bb64f

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

src/adapter/src/catalog/migrate.rs

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use std::collections::BTreeMap;
1111

1212
use mz_catalog::builtin::BuiltinTable;
13-
use mz_catalog::durable::{Transaction, Item};
14-
use mz_catalog::memory::objects::{StateUpdate,BootstrapStateUpdateKind};
13+
use mz_catalog::durable::Transaction;
14+
use mz_catalog::memory::objects::{BootstrapStateUpdateKind, StateUpdate};
1515
use mz_ore::collections::CollectionExt;
1616
use mz_ore::now::NowFn;
1717
use mz_repr::{CatalogItemId, GlobalId, Timestamp};
@@ -237,8 +237,8 @@ fn ast_rewrite_sources_to_tables(
237237
use mz_persist_types::ShardId;
238238
use mz_proto::RustType;
239239
use mz_sql::ast::{
240-
CreateSourceConnection, CreateSourceOptionName, CreateSourceStatement,
241-
CreateSubsourceOptionName, CreateSubsourceStatement, CreateTableFromSourceStatement, Ident,
240+
CreateSourceConnection, CreateSourceStatement, CreateSubsourceOptionName,
241+
CreateSubsourceStatement, CreateTableFromSourceStatement, Ident,
242242
KafkaSourceConfigOptionName, LoadGenerator, MySqlConfigOptionName, PgConfigOptionName,
243243
RawItemName, TableFromSourceColumns, TableFromSourceOption, TableFromSourceOptionName,
244244
UnresolvedItemName, Value, WithOptionValue,
@@ -515,7 +515,7 @@ fn ast_rewrite_sources_to_tables(
515515
include_metadata,
516516
format,
517517
envelope,
518-
mut with_options,
518+
with_options,
519519
if_not_exists,
520520
in_cluster,
521521
progress_subsource,
@@ -607,36 +607,13 @@ fn ast_rewrite_sources_to_tables(
607607
}
608608
_ => unreachable!("match determined above"),
609609
};
610-
let mut table_with_options = vec![TableFromSourceOption {
610+
let table_with_options = vec![TableFromSourceOption {
611611
name: TableFromSourceOptionName::Details,
612612
value: Some(WithOptionValue::Value(Value::String(hex::encode(
613613
details.into_proto().encode_to_vec(),
614614
)))),
615615
}];
616616

617-
// Move over the IgnoreKeys option if it exists.
618-
if let Some(i) = with_options
619-
.iter()
620-
.position(|opt| opt.name == CreateSourceOptionName::IgnoreKeys)
621-
{
622-
let option = with_options.remove(i);
623-
table_with_options.push(TableFromSourceOption {
624-
name: TableFromSourceOptionName::IgnoreKeys,
625-
value: option.value,
626-
});
627-
};
628-
// Move over the Timeline option if it exists.
629-
if let Some(i) = with_options
630-
.iter()
631-
.position(|opt| opt.name == CreateSourceOptionName::Timeline)
632-
{
633-
let option = with_options.remove(i);
634-
table_with_options.push(TableFromSourceOption {
635-
name: TableFromSourceOptionName::Timeline,
636-
value: option.value,
637-
});
638-
}
639-
640617
// Generate the same external-reference that would have been generated
641618
// during purification for single-output sources.
642619
let external_reference = match &conn {

0 commit comments

Comments
 (0)