Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は単純なテーブルを持っています:
UserID EventTimestamp ... ...
ユーザーは任意の数のイベントを持つことができます (なしからロットまで)。3 番目のイベントのタイムスタンプを (昇順で) 抽出するHiveQLクエリを実行する必要があります。イベントが 3 つ未満の場合は null になります。
UDF を使用してrank()をエミュレートする必要のないソリューションはありますか?