amaliujia commented on code in PR #38218:
URL: https://github.com/apache/spark/pull/38218#discussion_r993055982
##########
python/pyspark/sql/tests/test_connect_basic.py:
##########
@@ -79,6 +79,11 @@ def test_simple_explain_string(self):
result = df.explain()
self.assertGreater(len(result), 0)
+ def test_select_start(self):
+ df = self.connect.read.table(self.tbl_name).select("*")
+ data = df.toPandas()
+ self.assertEqual(len(data.index), 100)
Review Comment:
The best is to support `dataframe.schema` then check the schema. However the
StructType support in proto is under development:
https://github.com/apache/spark/pull/38200, and there could be other blocking
issues there.
Once schema is supported in proto, I will follow up to use `.schema` on
python side whenever it makes sense.
--
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]