Skip to content

Commit

Permalink
deleting extra debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordworms committed Feb 12, 2024
1 parent 6f83520 commit 1ac2876
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions datafusion/core/src/datasource/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ impl MemTable {
pub fn try_new(schema: SchemaRef, partitions: Vec<Vec<RecordBatch>>) -> Result<Self> {
for batches in partitions.iter().flatten() {
let batches_schema = batches.schema();
println!(
"the new schema is {:?}, schema set is {:?}",
batches_schema, schema
);
if !schema.contains(&batches_schema) {
debug!(
"mem table schema does not contain batches schema. \
Expand Down
3 changes: 0 additions & 3 deletions datafusion/expr/src/logical_plan/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1204,15 +1204,13 @@ pub fn build_join_schema(
right_fields.clone()
}
};
//println!("total fields is {:?}", fields);
let func_dependencies = left.functional_dependencies().join(
right.functional_dependencies(),
join_type,
left_fields.len(),
);
let mut metadata = left.metadata().clone();
metadata.extend(right.metadata().clone());
// let schema = DFSchema::new_with_metadata(change_redundant_column(fields), metadata)?;
let schema = DFSchema::new_with_metadata(fields, metadata)?;
schema.with_functional_dependencies(func_dependencies)
}
Expand Down Expand Up @@ -1268,7 +1266,6 @@ pub(crate) fn validate_unique_names<'a>(
Ok(())
},
Some((existing_position, existing_expr)) => {
//println!("node_name is {}, existing expr is {:?}", node_name, existing_expr);
plan_err!("{node_name} require unique expression names \
but the expression \"{existing_expr}\" at position {existing_position} and \"{expr}\" \
at position {position} have the same name. Consider aliasing (\"AS\") one of them."
Expand Down

0 comments on commit 1ac2876

Please sign in to comment.