zhengruifeng commented on PR #48856:
URL: https://github.com/apache/spark/pull/48856#issuecomment-2481758816

   > I think another way of doing this is to maintain a sized dictionary in 
Python side, and cache the value retrieved within the Python side.
   > 
   > e.g.,
   > 
   > * spark.get("a")
   >   
   >   * look up cacehd["a"] = v
   >     
   >     * if not, spark.get("a")
   > * spark.set("a", aa")
   >   
   >   * empty cache cached["a"]
   >   * spark.set("a")
   > 
   > and create a dictioanry with TTL and max size
   
   A problem is that `spark.conf` is not the only entry point for config 
operations.
   Users can also set/unset config by `spark.sql`


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to