id code
1 D
1 S
1 E
1 Y
I want to create a windowing function row_number partitioned by id column and order by code where i should get E first and rest records next.
Expected output is like
id code
1 E
1 D
1 S
1 Y
i want E to be coming first in ordering, Alphabetical won't work. is there any othere way? custom sorting or any other hive inbuilt function