HyukjinKwon commented on code in PR #38742:
URL: https://github.com/apache/spark/pull/38742#discussion_r1028915567
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -736,6 +736,19 @@ def toPandas(self) -> Optional["pandas.DataFrame"]:
query = self._plan.to_proto(self._session)
return self._session._to_pandas(query)
+ def _basic_analyze(self) -> None:
+ # update isLocal, isStreaming, explain_string, tree_string,
semantic_hash
+ if self._schema is None:
+ if self._plan is not None:
+ query = self._plan.to_proto(self._session)
+ if self._session is None:
+ raise Exception("Cannot analyze without
RemoteSparkSession.")
+ results = self._session.basic_analyze(query)
+ for k, v in results.items():
+ self._cache[k] = v
Review Comment:
Let's don't do caching stuff for now
--
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]