-
Notifications
You must be signed in to change notification settings - Fork 182
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
feat: Add array reading support to native_datafusion scan #1324
base: main
Are you sure you want to change the base?
Conversation
@@ -111,7 +111,7 @@ pub fn to_arrow_datatype(dt_value: &DataType) -> ArrowDataType { | |||
{ | |||
DatatypeStruct::List(info) => { | |||
let field = Field::new( | |||
"item", | |||
"element", |
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.
This change was necessary to resolve an error trying to cast List(Field { name: "element", ..
to List(Field { name: "item", ..
in schema_adapter
@mbutrovich This PR touches |
307fd19
to
8f10a98
Compare
|
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.
lgtm. One minor comment
@@ -58,6 +55,12 @@ object ParquetGenerator { | |||
val dataTypes = ListBuffer[DataType]() | |||
dataTypes.appendAll(primitiveTypes) | |||
|
|||
if (options.generateTimestamps) { | |||
dataTypes += DataTypes.TimestampType | |||
// TimestampNTZType only in Spark 3.4+ |
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.
Can we use CometSparkSessionExtensions.isSpark3.4Plus
here?
Which issue does this PR close?
Closes #1322
Rationale for this change
Add support for reading arrays from Parquet
What changes are included in this PR?
native_datafusion
scanHow are these changes tested?