Questions tagged [spark-window-function]
31 questions
0
votes
2 answers
Find number of null records between two non-null records in scala dataframe
I have a dataframe as shown below.
| ID | date | sig01_diff |
+-----+------------+------------+
| 123 | 2019-11-04 | 93668 |
| 123 | 2019-11-05 | 49350 |
| 123 | 2019-11-07 | null |
| 123 | 2019-11-08 | 11069 |
| 123 |…

Antony
- 970
- 3
- 20
- 46