-
Notifications
You must be signed in to change notification settings - Fork 584
[VL] Enable native Parquet write for complex types (Struct/Array/Map) #11788
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,10 +101,7 @@ object GlutenWriterColumnarRules { | |
| case rc @ DataWritingCommandExec(cmd, child) => | ||
| // The same thread can set these properties in the last query submission. | ||
| val format = | ||
| if ( | ||
| BackendsApiManager.getSettings.supportNativeWrite(child.schema.fields) && | ||
| BackendsApiManager.getSettings.enableNativeWriteFiles() | ||
| ) { | ||
| if (BackendsApiManager.getSettings.enableNativeWriteFiles()) { | ||
| getNativeFormat(cmd) | ||
| } else { | ||
|
Comment on lines
101
to
106
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a real issue. On Spark 3.4+, NativeWritePostRule only injects FakeRowAdaptor — the actual native/fallback decision is made by WriteFilesExecTransformer.doValidateInternal, which already rejects constant complex types. When validation fails, WriteFilesExec stays vanilla and FakeRowAdaptor is a harmless pass-through. Also, #11787 (already merged) restricts NativeWritePostRule to Spark 3.3 only, so this code path is no longer reachable on 3.4+. |
||
| None | ||
|
|
||
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.
Do we have any native test cases for HiveFileFormat's StructType, ArrayType, and MapType?
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.
thanks for the review, add the test