holdenk commented on code in PR #60000:
URL: https://github.com/apache/spark/pull/60000#discussion_r4590551003
##########
python/pyspark/sql/session.py:
##########
@@ -145,6 +144,10 @@ def toDF(self, schema=None, sampleRatio=None):
T = TypeVar("T")
+# Must match SparkSession.GET_OR_CREATE_MARKER on the Scala side, so that a
dataset stored by
+# one of them is recognised as complete by the other.
+_GET_OR_CREATE_MARKER = "_spark_getorcreate_success"
+
Review Comment:
hmmm so normally we delegate most functionality to the JVM side, now we
can't do that for the lambda eval directly (we could do funk call backs but
that would convulted for not much benefit) so to avoid this potential drift we
could instead expose the java helper function for checking if a DF has already
been materialized at that location, then incidentally we could do the same on
the connect impl where we expose that check and then the rest is up to the
connect impl to eval.
--
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]