Skip to content

Conversation

@andygrove
Copy link
Member

Summary

Test plan

  • Iceberg integration tests pass (triggered by [iceberg] in title)
  • Existing scan tests continue to pass

🤖 Generated with Claude Code

CometScanWrapper unconditionally set isFfiSafe=true, which told native
ScanExec to skip deep copies for all scans. This is correct for
CometScanExec (native_iceberg_compat) which now uses immutable Arrow
readers, but incorrect for CometBatchScanExec (Iceberg Java integration
via SupportsComet) which still uses mutable buffers.

Make isFfiSafe conditional on the scan type: true for CometScanExec,
false for CometBatchScanExec. Also remove the stale
hasScanUsingMutableBuffers check for CometScanExec since PR apache#3411
replaced mutable buffers with immutable Arrow readers.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.

1 participant