beliefer opened a new pull request, #39456:
URL: https://github.com/apache/spark/pull/39456

   ### What changes were proposed in this pull request?
   Currently, the implementation of nth_value for connect is not correct.
   ```
   Traceback (most recent call last):
     File 
"/Users/s.singh/personal/spark-oss/python/pyspark/sql/tests/test_functions.py", 
line 755, in test_nth_value
       self.assertEqual(tuple(r), ex[: len(r)])
   AssertionError: Tuples differ: ('a', 1, 'x', None) != ('a', 1, 'x', 'x')
   
   First differing element 3:
   None
   'x'
   
   - ('a', 1, 'x', None)
   ?               ^^^^
   
   + ('a', 1, 'x', 'x')
   ? 
   ```
   This PR will fix the issue.
   
   
   ### Why are the changes needed?
   Try to fix the issue that `nth_value` functions output is not correct.
   
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   New feature.
   
   
   ### How was this patch tested?
   Manual tests.
   


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