zikangh commented on PR #59943:
URL: https://github.com/apache/spark/pull/59943#issuecomment-6536109772

   Hi @HeartSaVioR, 
   
   The reason streaming cannot perform column pruning during optimizer is due 
to a fundamental streaming lifecycle issue:
   
   - We need MicrobatchStream to call latestOffset
   - to get MicrobatchStream, we need `Scan scan = ScanBuilder.build()`
   - By the time the optimizer runs, the Scan is already built and frozen, we 
cannot do pushdowns anymore (those require a ScanBuilder).
   
   it is very tricky to fix this, but we have a workaround that will be 
open-sourced soon. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to