Current thinking is that the data design: 2 d 3 d can
Two-dimensional data: the user's location time
The user position 1 time 1
User 1 position 1 time 2
User 1 2 position 3 time, etc.
3 d: is the two-dimensional table into different user
If is to use 2 d data, how can I achieve continuous repeating field data processing to heavy, with a focus on the deal only with continuous, can only use the spark processing,
Pray god to help show the following, thank you very much,
CodePudding user response:
Use the row_number () function, according to the user, location to group, in accordance with the time to sort, to generate the same user,The same position under the corresponding order number, and then carried out in accordance with the order number to brush, row_number is Oracle
On the function, a lot of online data, it is ok to look and see
CodePudding user response: