Skip to content

Conversation

@jayzhan211
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@github-actions github-actions bot added logical-expr Logical plan and expressions core Core DataFusion crate labels Oct 6, 2024
};
fields.push(f);
}
let table_schema = Arc::new(arrow_schema::Schema::new(fields));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the table schema to utf8


fields.push(f);
}
let schema = Schema::new_with_metadata(fields, schema.metadata().clone());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to change the one in logical plan too

let field = self.file_schema.field(idx);
table_fields.push(field.clone());

let f = if field.data_type().equals_datatype(&DataType::Binary) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this works out I think we should put this feature behind a feature flag. I think this change will have the effect of changing all binary columns to utf8. This is the right thing to do for the hits_partitioned dataset, but I am not sure it is the right thing to do in general.

I tried to write this up more coeherently in #12788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate logical-expr Logical plan and expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants