itholic commented on code in PR #45377: URL: https://github.com/apache/spark/pull/45377#discussion_r1552967079
########## python/pyspark/errors/exceptions/captured.py: ########## @@ -379,5 +379,13 @@ def fragment(self) -> str: def callSite(self) -> str: return str(self._q.callSite()) + def pysparkFragment(self) -> Optional[str]: # type: ignore[return] + if self.contextType() == QueryContextType.DataFrame: + return str(self._q.pysparkFragment()) + + def pysparkCallSite(self) -> Optional[str]: # type: ignore[return] Review Comment: > By any chance could we comment what "fragment" and "callSite" are at PySparkCurrentOrigin? Sounds good. Let me add a comment -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org