HeartSaVioR edited a comment on pull request #28377:
URL: https://github.com/apache/spark/pull/28377#issuecomment-620309415


   > It sounds like the metadata is not available for TimeWindow expression 
when the function name(alias: String) copies the metadata to explicitMetadata. 
Thus, we do not set it when calling the APIs in Column.
   
   That's right, but I don't see the reason of the fix only because we 
encountered an actual problem from there. This has been simply wrong because we 
set explicit metadata on Alias while it's not asked to overwrite. Javadoc of 
the Alias clearly describes the usage of explicitMetadata:
   
   ```
   @param explicitMetadata Explicit metadata associated with this alias that 
overwrites child's.
   ```
   
   (that's why I couldn't agree with the initial proposal from #28326.)


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to