10110346 opened a new pull request #23295: [MINOR][SQL]Change  
`ThreadLocal.withInitial`  to Scala lambda syntax
URL: https://github.com/apache/spark/pull/23295
 
 
   ## What changes were proposed in this pull request?
   Currently, Scala  has updated to Scala 2.12.8 ,  so  we can change this to 
Scala lambda syntax
   
   
   ## How was this patch tested?
   Existing tests.
   And Manual testing:
   ```
   == Physical Plan ==
   *(3) HashAggregate(keys=[attribute#237L], functions=[sum(cnt#227L)])
   +- Exchange hashpartitioning(attribute#237L, 5)
      +- *(2) HashAggregate(keys=[attribute#237L], 
functions=[partial_sum(cnt#227L)])
         +- *(2) HashAggregate(keys=[nested#223.attribute#243L], 
functions=[count(1)])
            +- Exchange hashpartitioning(nested#223.attribute#243L, 5)
               +- *(1) HashAggregate(keys=[nested#223.attribute AS 
nested#223.attribute#243L], functions=[partial_count(1)])
                  +- *(1) Project [nested#223]
                     +- *(1) Scan ExistingRDD[nested#223,value#224L]
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to