in src/transfer.rs [351:363]
fn filter_attributes_to_append(ts: &app::TableSchema, ats: String) -> Vec<String> {
let mut attributes_to_append: Vec<String> = vec![];
let splitted_attributes: Vec<String> = ats.split(',').map(|x| x.trim().to_owned()).collect();
for attr in splitted_attributes {
// skip if attributes contain primary key(s)
if attr == ts.pk.name || (ts.sk.is_some() && attr == ts.clone().sk.unwrap().name) {
println!("NOTE: primary keys are included by default and you don't need to give them as a part of --attributes.");
continue;
}
attributes_to_append.push(attr);
}
attributes_to_append
}