jingz-db commented on code in PR #49560:
URL: https://github.com/apache/spark/pull/49560#discussion_r1953458783


##########
python/pyspark/sql/tests/pandas/test_pandas_transform_with_state.py:
##########
@@ -640,12 +612,7 @@ def _test_transform_with_state_init_state_in_pandas(
         df = self._build_test_df(input_path)
         self.assertTrue(df.isStreaming)
 
-        output_schema = StructType(
-            [
-                StructField("id", StringType(), True),
-                StructField("value", StringType(), True),
-            ]
-        )
+        output_schema = "id string, value string"

Review Comment:
   To reviewers: this is a non-trivial code change. I found we miss a test 
coverage of checking input string schema for `output_schema` so I added it here.



-- 
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]

Reply via email to