HyukjinKwon commented on code in PR #38278:
URL: https://github.com/apache/spark/pull/38278#discussion_r996629632
##########
python/pyspark/testing/connectutils.py:
##########
@@ -58,7 +63,23 @@ class PlanOnlyTestFixture(unittest.TestCase):
connect: "MockRemoteSession"
+ @classmethod
+ def _read_table(cls, table_name: str) -> "DataFrame":
+ return DataFrame.withPlan(Read(table_name), cls.connect) # type:
ignore
+
+ @classmethod
+ def _udf_mock(cls, *args, **kwargs):
+ return "internal_name"
+
@classmethod
def setUpClass(cls: Any) -> None:
cls.connect = MockRemoteSession()
cls.tbl_name = f"tbl{uuid.uuid4()}".replace("-", "")
Review Comment:
We shouldn't actually use uuid here but call `DROP IF EXISTS` before and
after running the tests. Since this PR doesn't target to address these, I am
fine with doing separately too.
--
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]