HeartSaVioR commented on PR #60068:
URL: https://github.com/apache/spark/pull/60068#issuecomment-6632313307

   Thanks for the fix!
   
   Unfortunately it is "harder" to fix it than dedup, because it will impact 
state schema whether the column is dropped or not. For dedup, it only happens 
when the event time column isn't in the subset (keys). So even after the fix, 
the state schema isn't changed.
   
   It is different in join. For join, when we add event time column into 
references, we increase effective column (since event time column isn't going 
to pruned), which directly impacts state schema.
   
   Using pinned config is tricky since references can be both accessed in 
analyzer and optimizer, and we have some places where we do analysis even 
before streaming query has started (I'd call it as early-analysis issue), so 
there is no complete solution for this with pinned config.
   
   That said, we may want to think through the solution, including leaving this 
as known issue.
   
   1. Call it as "known issue" - behavior on late record filtering is maybe not 
consistent across stateful operators. Not great, but it might be a reasonable 
workaround.
   2. Apply the fix, knowing that we are breaking the existing workloads. We 
introduce SQL config to mitigate the issue by users when they hit the issue. 
It's not going to be a pinned config since it doesn't work anyway. (So auto 
mitigation with existing streaming query doesn't work here.)
   3. Explore the path where we do not impact the state schema and still 
resolve the issue. Maybe modification around the operator itself, but I assume 
this path would be tricky.


-- 
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