Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parquet binary #12777

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Parquet binary #12777

wants to merge 1 commit into from

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

@@ -231,7 +231,14 @@ impl FileScanConfig {
for idx in proj_iter {
if idx < self.file_schema.fields().len() {
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