-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Parquet binary #12777
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
Conversation
Signed-off-by: jayzhan211 <[email protected]>
}; | ||
fields.push(f); | ||
} | ||
let table_schema = Arc::new(arrow_schema::Schema::new(fields)); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
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?