Github user dilipbiswal commented on the pull request:

    https://github.com/apache/spark/pull/9844#issuecomment-158869241
  
    Thanks a lot @cloud-fan. Actually i do remember trying to do something 
similar. So i had tried to filter on resolved and was trying to only pick 
un-resolved attributes. But after i had done the execute  i had difficulty to 
stich together the two resolved attributes to restore the original sortorder. 
We need to keep the orginal order of the attribute, right ? So here is what i 
was trying ..
    1) filter the sortorder attributes to only keep the unresolved ones.
    2) copy them to aggregate expression and call execute
    3) After this i wanted to form a sort order having both the already 
filtered attributes and the newly resolved ones. This is where i was having 
difficulty.
    3) We then call checkAnalysis .. and rest of the logic follows.
    
    I am sure you will have some magic here :-) Can you share your thoughts.. 
Thanks a lot.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to