The PySpark documentation says that first() and last() functions of Spark are non-deterministic (without mentioning the use "inside" of windows) ; while doing some research on this, i found this answer that states:
You could still use last and first functions over a Window which guarantees determinism
So, are first and last deterministic when used over a Window and non-deterministic when used on a Group? Is there some documentation confirming this?