Skip to content

fix: insert overwrite directory native writer#3531

Open
Shekharrajak wants to merge 3 commits intoapache:mainfrom
Shekharrajak:fix/2957-insert-overwrite-directory-native-writer
Open

fix: insert overwrite directory native writer#3531
Shekharrajak wants to merge 3 commits intoapache:mainfrom
Shekharrajak:fix/2957-insert-overwrite-directory-native-writer

Conversation

@Shekharrajak
Copy link
Contributor

Which issue does this PR close?

Closes #2957

Rationale for this change

source operators like RangeExec (from spark.range()) produce InternalRow format, not Arrow format. The native writer requires Arrow-formatted input (requiresNativeChildren = true), so the conversion fails.

What changes are included in this PR?

Previously, users had to manually enable spark.comet.sparkToColumnar.enabled=true to convert RangeExec to Arrow format. This fix automates this conversion when native write is requested, making INSERT OVERWRITE DIRECTORY work out of the box without additional configuration.

How are these changes tested?

Unit tests : basic with RangeExec source , aggregation, compression

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comet writer doesnt support INSERT OVERWRITE

1 participant

Comments