You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/07/29 11:02:53 UTC
[GitHub] [spark] HyukjinKwon commented on pull request #33558: [SPARK-36326][SQL] Use Map.computeIfAbsent to simplify the process of bufferPoolsBySize init new item in HeapMemoryAllocator
HyukjinKwon commented on pull request #33558:
URL: https://github.com/apache/spark/pull/33558#issuecomment-889022503
Can we do sth like:
```java
p.stringPropertyNames().forEach(
key -> effectiveConfig.computeIfAbsent(key, k -> effectiveConfig.put(p.getProperty(k)));
```
?
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org