beliefer edited a comment on issue #24647: [SPARK-27776][SQL]Avoid duplicate 
Java reflection in DataSource.
URL: https://github.com/apache/spark/pull/24647#issuecomment-494279594
 
 
   > 1. This patch will show different behavior if provider provides different 
instance per constructor call (this is actually obvious) and the instance, or 
DataSource leverages the fact.
   
   First of all, I'm glad to see your detailed description.
   I understand your second point and agreed but your first point.
   There are only called the constructor without parameters, so I think every 
provider only provides one behavior. Maybe I missed some detail.
   
   To second point, we gain to ensure it by adding a contract, such as an 
annotation `stateless`

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


With regards,
Apache Git Services

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

Reply via email to