I want to replace null values with the value of the top row in Spark 2.3. An example of dataframe:
|COLUMN |
|-------|
|10     |
|30     |
|null   |
|80     |
---------
The result I want would be:
|COLUMN |
|-------|
|10     |
|30     |
|30     |
|80     |
---------
Thanks.