What does the pyspark.sql.functions.window function's 'startTime' argument do and window.start?
问题 The example is as follows: df=spark.createDataFrame([ (1,"2017-05-15 23:12:26",2.5), (1,"2017-05-09 15:26:58",3.5), (1,"2017-05-18 15:26:58",3.6), (2,"2017-05-15 15:24:25",4.8), (3,"2017-05-25 15:14:12",4.6)],["index","time","val"]).orderBy("index","time") df.collect() +-----+-------------------+---+ |index| time|val| +-----+-------------------+---+ | 1|2017-05-09 15:26:58|3.5| | 1|2017-05-15 23:12:26|2.5| | 1|2017-05-18 15:26:58|3.6| | 2|2017-05-15 15:24:25|4.8| | 3|2017-05-25 15:14:12|4.6|